Wired up http-mock as middleware.