Added .jshintrc and style fixes
Updated peerconnection for the new API changes.
Added connection closing