Moved the output content types tuple above functions that utilize it
Moved logic to process requests for HTML into parent tool

Since this happens lower in the request cycle it has the additional
effect of bypassing the URL routing. All requests for HTML will return
the index.html file regardless of the requested URL; this allows using
the HTML5 history API in a JavaScript app running on top of the API.