Make Apache-related functions build
Add get_all_headers()
Fix segfault when SAPI outputs strings of length 0
Move request ctor/dtor into their own functions
TODO:
POST, cookies, "flushing", finalizing config framework (it works),
http auth, PHP Hooks (apache_sub_req is there).
Note that this code depends on some other commits which are pending.