Add hooks for operations to be done before and after run_backend.
Add Support for a controllers/routes kind of architecture.