Mutable storage of immutable xml trees. Everything is kept in memory,
with a thread periodically checking for changes and writing to file.
To ensure atomicity, two files are used, filename1 and '$'+filename1.
The implementation switches between the two, deleting the older one
after a complete dump of the database has been written.