Pull all admin related code out.

Fixes #121