Improve NSNetservice based networking.

- Save the netservice for future reference, when initiating a netservice based connection.
- Make sure that netservice delegate callbacks are handled on the same runloop as the rest of the connection stuff.
Fix some Xcode 6 warnings.