Add evhttp_connection_get_server().
Add checks for evhttp_connection_get_server() in unit tests.

They validate that this function behave as expected; that is, it returns
NULL for outgoing connections, and returns the HTTP server object that
received the connection for incoming ones.
Avoid leaking segment mappings when offset is not a page multiple

Found by Bob / Black Hole on the mailing list.