Refactor basic connectivity into a unit test fixture.
Ignore deb generation output.
Test that socket errors on read are delivered back to the application handler. Fix a deadlock therein.