fix(peer): use error-checking multiaddr method

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
refactor(peer) impl peerstore with map

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
refactor(peerstore) s/Get/FindOrCreate

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
refactor(peer): create peer through peerstore

for safety!

use mockpeer.WithID methods to create peers in tests

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
feat(peerstore) add peer to peerstore upon instantiation

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
fix(core, peer) helpers to testutil, err handling

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Merge pull request #419 from jbenet/refactor/peersafe

refactor(peer) some _minor_ safety features