Basic permissions check. JIN-91
More JIN-91 + update to angular 1.2.4
Check the permission of the groups of the user too. JIN-91