Make self.document always the root document

Per [Eve #295](https://github.com/nicolaiarocci/eve/issues/295).

Not yet ready for merge - still need to write a unit test and clean up debug lines.

@nicolaiarocci, @jpanikulam