Middleware

- Added loading of middleware (register(app) method called for each)
- Moved parameter registration from controllers to middlewares
- Update Application architecture generation (in scripts)