sdp.js: added parseCandidate and generateCandidate

Not sure if this is the way to go, but something similar would be useful to have. I'll  be sure to dry it if we think this is a reasonable approach.