Update unit tests to accomodate recent refactorings to ITemplate/Template.
Refactor Document into PortableDocument and PrintDocument
Continue refactoring...