Also adds admin thread checks to MonitorManager functions and combines anonymous namespaces.
Allows better separation of file local data. Also allows moving monitor- related code from config_runtime.cc.