As a user of the framework I would like to have middleware support in order to reuse and combine certain features on multiple routes.
Acceptance Criteria:
[ ] Define superclass
[ ] Support black- and whitelisting for specific routes
[ ] Easily understandable API as previously discussed
[ ] Changing middlewares while the app is running results in an error
[ ] Middleware can read from and write into a shared environment per request
[ ] A middleware receives the environment and the next handler as arguments. It can choose not to call the next handler. The next handler can be another middleware or the route.
As a user of the framework I would like to have middleware support in order to reuse and combine certain features on multiple routes.
Acceptance Criteria: