sets requirejs baseUrl to absolute path to make it work from any url
re-designs layout and implements routing system