Added block that writes DOM tree to file in flush(). Added imports.
Actually added imports (for transformer) now.
Changer test file in order to use the text file used for tests as a field
in ContactManagerImpl (as will be done in the completed application).
Changed 'file' back to a field rather than a method parameter. This keeps
the contract with ContactManager and is needed for more tests.