Updated CocoaAsyncSocket classes used in ios socket plugin.

Fixes a lot of deprecation warnings.