Tiny server

This rewrites some server functionality so we don't need to rely on a handful of other rather large PHP libs just to run a tiny http server.

* http request parsing
* response writing
* basic stream socket loop handling
* handles SIGINT and SIGTERM