Update admin.py to completely work in refresh

This almost completely revamps the admin plugin, makes all methods work in refresh.

Note that this needs #253 and #254 to be pulled in order to work.