Changed HTTPRequestHandler to buffered reading.

Previously HTTPRequestHandler subclasses had to send output
line-by-line, but this is problematic in binary files and files with
very long lines.