A fully managed HttpListener implementation extracted from Mono.