San Francisco Frontiers - Amazon reports rare quarterly loss, sees 'challenges' ahead