Ripped out old way of configuring base urls for app. Fixed various issues.