Added some outgoing socket emits.
Added new admin functions.