Better error-handling and fixed the unit tests.
* More defensive socket handling.
* Removed the debug output that was echoing to stdout.
* Fixed the unit tests.
* 5.5 is now required for running unit tests, because unpack() changed
subtly in 5.5.
* Minor README doc improvements.