First commit of the switch to Shiro for internal security management