Refactor admin controllers so tests don't have to rely on a running database. Code review: Matthew