Store base URI in Discourse.BaseUri and use it in all places where rootURL was previously used
Merge pull request #637 from wojciechka/master

Putting rootURL in JavaScript using Discourse::base_uri and erb