Test framework for checking security system
Draft code for actually doing the authorization. Test development in
progress.