Make sure streams are properly closed when HTTP connections break:
    close the underlying file descriptor, then handle the 'error'
    stream event accordingly.

Attempt to write Mocha tests for the server. Still need to figure
out how to properly simulate concurrent access.