Publish head.cdn.location to runtime js. Fixes intermine/intermine#593

This avoids the need to configure the cdn location in properties and in
JS.
Make sure that the generated js matches the configured properties
Merge pull request #598 from alexkalderimis/hf-593

Fix for intermine/intermine#593