fix memory leaks

Now that HttpRequest has well-defined owning semantics, we can have it
adopt the data/post/headers and take care of deleting them.