[#34] - added handshake on server
[#34] - made handshake work with client
[#34] - added test
[#34] Update formatting for consistency.
[#34] Update autoreload tests for all 4 states.