improving navigation in the admin
initial support for tests
fixing authentication and authorization bugs