Rename admin_controller admin_panel method to index.
Fixes a bug in the admin controller, adds basic tests.