Initial DOM serialization support.

Traverse the DOM and capture the desired attributes in JSON format.
Then write this JSON to the file system.