Fixed issues in connection.cpp

Fixed: Socket options must be set after socket is opened. 
Fixed: host string split
Fixed: async pull_forever now works (ios.run() run added)