An example of orchestrating login and roles-based security in Ext JS