move peerconnection to its own file, fix send message