require minitest/mock
dependency inject :socket

allows us to mock out the actual connection for testing
add Connection#write_request

higher level abstraction to make testing easier and to DRY up existing
socket IO
ber formatted next_msgid
make #write_request private
DRY up #write calls

with #write_request
just use #write

not adding another method call. Since it's a private method, not giving any
deprecation warning.
Merge remote-tracking branch 'origin/master' into connection-write-request

Conflicts:
	test/common.rb
use flexmock for now

since we're not moving away from flexmock just yet, I updated my tests to use
flexmock to be consistent. cc @mtodd
missed a spot
Merge pull request #116 from jch/connection-write-request

Add private Net::LDAP::Connection#write_request