Feature/authentication

Add functionality for authentication. Includes bug fix for Connection that properly sets identity on both ends of communication - previously it got set to the initiating part on both ends.