Clean up start_handshake

* Make start_handshake more readable
* Guard json.loads from exceptions that may be thrown while processing a
  message that came from the network
Remove sin and generate_sin from CryptoPeerConnection that were not used
Remove unused import