First function refactored

This looks like it will definitely work, could be the start of a base IE template
Moved more functions over
More progress refactoring
Copy imports
Remove pointless statement
Added hex gen stmt
Moved more configuration into ie base module
Reverted change used during testing
Moved URL writing into ie.mako
More static variables gone
moved JS into template
Load JS with default names
Removed more unused code
Bugfix and remove no longer used imports
Removed 'galaxy defaults'
Refactored more variables out
More documentation
Give up after 10 tries
Requiring require.js
Commented out code planning for ie/ipy.js split