Refactor IO connection creation

Change-Id: I77e741c0f815dafc2f37b3e33bcd5bb2648e8334
Reviewed-on: http://review.couchbase.org/32619
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>