Nodify Serializer.serializeDOM

 * Changes the signature to be consistent with node apis.

 * Rewrite the uses in the ParsoidService with Promises.

Change-Id: I68a2eca28ebad62e4541d0731e39ece7b73748a4
Merge "Nodify Serializer.serializeDOM"