Dont rely on BaseProjectUrl data in body tag

First step toward decoupling some part of the Javascript from data beeing in the dom, 
ie move most of  $(body).data(BaseProjectURL) of object into methods, and make it configurable through a config option.