Wal-mart's e-commerce operation represents its fastest-growing business and helped the company increase total sales last year in what was an otherwise weak year.