Remove copy/paste socket code from E-stlye plugins

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