refactored peer connection
Merge pull request #13 from yzernik/peer_connection_refactor

refactored peer connection