Instead of reading/writing to a single QMDL file, we now can manage
a directory of several files, and have the ability to start/stop writing
to them on the fly.
This commit also adds graceful exiting to the server, so we can perform
cleanup steps when the server's exiting.