First version of the fs replacement for the db, untested
Debugging fs
Removed debug logging
Set up almost-closed