Include settings.root in the URL prefix when loading

This should fix issue #6. I'm not sure how the isDojo case should be handled though.