Fire onGetStatus event when received message from xxx@s.us
Merge pull request #445 from pastoso/master

Fire onGetStatus event when received message from xxx@s.us
close socket and fire onClose on feof while reading. Fire onConnectError if fsockopen fails.
Fix copy/paste error. Do not set socket to null after closing it
Merge pull request #447 from pastoso/master

Handle socket closing and error opening
Changed some protocol node stuff

Made properties private
Added getters for private properties
Added return types in docu blocks
Added data getter
Big overhaul

Changed calls to protocol node properties into getter methods
Added more @param, @throws and @return in docu blocks
Cleaned up code
Fixed pretty much all warnings
Wasted my whole afternoon on this