Refactored code and configuration and added the prototype for access control and the foundation for user management