Snapshot play.cc.
Implement Item::element().
HTML parsing, refactoring, bug fixes.

    * Split file IO utilities into their own module.
    * Make getroot() and getnext() robust.
    * Split out ensureValidDoc_().
    * Unify parse() and fromstring() implementations, add HTML parsing.