Feature/peer checking

- add inbound connections checking against know public keys
- handles errors on connection errors and other network related events.