tests: Handle unexpected socket connection closure.
tests: Use EOFError instead of socket.error to report unexpected connection closure.
tests: Begin work on State Server tests.
tests: Add broadcast test to State Server unit test.
Merge remote-tracking branch 'origin/cfsworks-tests-stateserver' into stateserver