Reworked rootURL in ember.js and allow handling of back/forward buttons in browser

Reworked rootURL in ember.js and allow handling of back/forward buttons in browser