Feature/authentication

* Feature: Add functionality for mutual authentication between nodes.
* Fix: Connection used to always have the initiating identity set as identity on both ends. this is now fixed so that it is always the one of other end.