Code cleanup in prep for document render agent tests.
Adding document render tests, bug fixes and config changes.