Add a couple of TODO items
Return an iterable for the XML dump

This, together with the removal of the safeout loop, should allow
us to dump unreasonably large databases without pre-loading them
all into RAM. Not that we actually ever need this, but it is the
right thing to do and a good excercise.
Drop unused code that prints environ