Java 7+ changes and misc cleanup. [1423]

Also converted all of the System.out/System.err/printStackTrace output
in PersistenceManager to logging calls.
Temporary override of XmlUtil. [1831]

I want to put this one through the wringer before submitting a pull
request.
Change XML encoding from ISO-8859-1 to UTF-8.

[1831]