add createOffer to core.peerconnection