Further work.
Fixed client side authorization handling.
Fixed bootstrap navigationbar handling when using angularjs.