Improved HTTP error messages
Fixes for HTML output

- added header to prevent browsers from caching HTML response
- only append the script block if reading a file
- if a command was specified, set it as the page title