Add API endpoints and middleware for user and product manipulation
Introduced API endpoints in api.go for handling product saving, user updates, user retrieval, and cart functionality. Added middleware for checking user and admin permissions. These changes form part of implementing core features of the application and to ensure appropriate security measures are in place.