httpd enhancements

- add notification hooks for subclass
- add exception hook and implement in subclass
- extract server socket run loop and handle more errors
httpd enhancements + related handler/test changes

- add ability to dispose of closeable resources after responding to better
  support streaming responses
- some cleanup of unused imports, legacy hashtable use