Return from new peer handshake, save peer to db

Enable return from new peer handshake to add_peer() so peer info is
saved to persistent database.
Bugfix: .join() expects list argument
Merge pull request #827 from freamon/fix_return_from_handshake

Fix return from handshake