setupConstants now does not add self to peerDict.
handleMessager can now respond to handshakes.
Fixed compilation issues; now understand for-each.