Amazon surprised investors on Thursday with a fourth-quarter profit that soundly beat expectations, despite a continued increase in spending and a slight sales miss, partly linked to the strong dollar. The results seem to indicate that areas in which Amazon has been investing in heavily for years, its $99 annual loyalty program and its Amazon Web Services cloud computing offerings for businesses, are finally helping out its bottom line.