Use data attributes to set chrome app extension and remove old mechanism

Use data attributes set by templates, to set the Chrome Extensions origin used to restrict message passing.  This information is needed by the webview, and was previously set using a hash param.  Setting it using data attributes seems safer and simpler.