Embrace the environment object

Double down on the env object used to pass stuff to the middleware:

- Use it in the dispatcher store the response and return it instead
- Use it in the server module to access stats, set the request, and
  process the response