refactored the whole peerconnection module.
it is now OO.
//ToDo: decide whether the protocol should be handled within the peerConnection class or the client class