Those method declarations are part of the delegates protocol, no need to list them here
Replaced deprecated Cordova methods for plugin call backs with current way of doing things
When initiating connection, must keep strong reference to the created connection, otherwise delegate messages won't be called.
In delegate messages, only process those for our connection.