Add support for boolean Elements.

Add support for boolean Elements.  Major changes to the Document class.
Start implementing iterators.