Added flatfs, as well as fixed some memory leaks. Valgrind across tests now reports 0 memory leaks.
A lot of code cleanup, plus beginning the implementation of a datastore.