HttpServer now takes a custom middleware.

- Renamed IMiddleware to IMiddlewareHandler
- Middleware class now implements Middleware.
Before major changes.