Renamed some variables to match the classic Go style. Improved handling of text/html requests. Improved tests.