Removed 'authorize' emit event and created which is now replaced by an authorize function.
Added ip address to the authorize event
Added ability for the authorizeFn to ask StratumClient to close connection