adds baseUrl and basePath to Application instance. refactors UrlHelper to use correct baseUrl and basePath