The ecommerce company began with a spreadsheet problem. Now its bet is that the same system that measures your marketing should help run it.