Move CRM.url init out of template CRM-12339
Move settings to html-header region CRM-12339
Fix undefined index warning CRM-12339
Remove scripts.tpl and references to it CRM-12339
ts() shoudn't be used in an inline script.
Shouldn't have removed that - adding it back CRM-12339
Fix inconsistent ordering of header elements CRM-12339
In D6 & D7 our header region seems to always render before drupal's scripts and styles,
whereas Joomla was the opposite. To fix this I have rolled-back the use of JFactory to add scripts,
and weighted our settings region so it will always be the first thing in the header.