Fix some tests that didn't mock requests enough

Real requests always have content-length, which
these didn't, so the previous fix where we switch to
always reading a length based on the specified content-length
broke them.
Merge pull request #322 from gittip/fix_sockettests

Fix some tests that didn't mock requests enough
Add a main-module entrypoint