Agent.getHttpMiddleware() returns HttpMiddleware.

PASS: agent_server.Agent.getHttpMiddleware() returns a instance of
HttpMiddleware.
getHttpMiddleware adds agentMiddle to middleware

PASS: agent_server.Agent.getHttpMiddleware() adds agentMiddle to
middleware
Refactored WebServer tests
.reqToMap() takes a Request and returns a map

PASS: agent_server.WebServer.reqToMap() takes a HttpRequest and returns
a map
reqToMap() maps req.metode to ["metode"]

PASS: agent_server.WebServer.reqToMap() maps req.metode to ["metode"]
.reqToMap() maps req.uri to ["uri"]

PASS: agent_server.WebServer.reqToMap() maps req.uri to ["uri"]
mapToRes(map, HttpResponse) => same response.

PASS: agent_server.WebServer.mapToRes() takes a map and a HttpResponse,
returns the same response.
.mapToRes() if no code use 418 I'm a Teapot.

PASS: agent_server.WebServer.mapToRes() if no code is given use 418 I'm
a Teapot.
.mapToRes() use code from map["code"].

PASS: agent_server.WebServer.mapToRes() use code from map["code"].
.mapToRes() calls close on request.

PASS: agent_server.WebServer.mapToRes() calls close on request.