Use data passed in through templates to determine app mode

Instead of using hash params, use data attributes of document.header, which are set by templates, to specify if the web page should be run in app mode.  This is then set to true for static pages generated for the Chrome App, and false for the web app.