Improved socket handling in client. Added new, fairly exhaustive test.
Merge branch 'master' of github.com:alect/TaskSprint