Added server connection state handling class.
Might use this for the client as well, so all the state for
connecting is in one file.
Removed redundante and false comment.
Clarified the scope of the unit test.