Minor whitespace change
Event 'fail' now provides instance of Error

Interface remains the same.
Renamed 'error' event to 'Socket error' and provides instance of Error
Added 'Server error' to 'error' event
Added 'IP or port not available' to 'error' event