WIP on admin api dispatch, using rpc server properly.
More fixes from jam's review & misc.

Move loggedIn mutex to admin object.
s/APIHandler/apiHandler/
Remove commented out srvRoot, no longer needed to test registry.