Refactor shopping cart apis according to use cases
More refactoring and bug fixes
Bug fixes for frontend shopping cart