unit testing - partial

Work to add unit testing to the lib.
Makes changes to the connection and HTTP socket libs
to make sure we can use testing fixtures.

NOTE: does not work properly yet.

partial https://github.com/vmware/pyvmomi/issues/42