[BISERVER-8247] IE10 does not display the Login page correctly

* Changed dynamic script and link tags injection from using the document.write method to using the createElement/insertBefore method.

* Strangely, these document.write's didn't work in IE10. 
  Possibly it has to do with nesting level limits (the scripts where the document.write commands were issued were themselves already the product of dynamic script inclusion through document.write...)