Angular.js role based authentication.