Add public/js folder
Move middlewares to routes/middlewares
move userMiddleware code from lib to routes/middleware
remove unused middleware
Update middlewares to new dependency location
change x-powered-by
Handle changePassword form
Add ensureAuth to api middlewares
Add api routes
Update change-password template
Add api routes to main router