Fixed event listeners for change mode buttons so that they only set mode if they have been enabled.
Added event for client login complete.
Added the ability to auto start and auto shutdown.