Add simple `Parsoid.parse` JavaScript API.

Based heavily on the `tests/parse.js` binary.

Change-Id: I811f124247a916ac2ab0c665141029668186b29f