refactored base url logic to work in combination with a <base> element, so assets referenced in loaded pages have proper base paths.
refactored base url logic to work in combination with a <base> element, so assets referenced in loaded pages have proper base paths.

npmcomponent/cbou-jquery-mobile,npmcomponent/cbou-jquery-mobile,arschmitz/uglymongrel-jquery-mobile,hinaloe/jqm-demo-ja,arschmitz/jquery-mobile,startxfr/jquery-mobile,startxfr/jquery-mobile,arschmitz/jquery-mobile,rwaldron/jquery-mobile,arschmitz/uglymongrel-jquery-mobile,hinaloe/jqm-demo-ja,rwaldron/jquery-mobile,npmcomponent/cbou-jquery-mobile,startxfr/jquery-mobile,arschmitz/jquery-mobile,hinaloe/jqm-demo-ja,arschmitz/uglymongrel-jquery-mobile