Changes on schemas and routing.
Added basic security middlewares.