Added the ability to poll a Document for information about its
contents and its cursor location, as well as the ability for a
Document to read from the filesystem when it is initialized.