some improvements for Auth on client side and nav-bar directive for intelligent highlighting active class in navigation