Store base URI in Discourse.BaseUri and use it in all places where rootURL was previously used