WIP: Fix Apache HTTP adapter

Apache is now fixed and functional.

All current test suites pass with both clients.

TODO: Complete porting the tests over.