added core:link-to-current-app
replaced baseHref with function call
removed unused code
fixed wrong path variables
redid some controller rewrites