dclass: Drop all of the file-writing stuff into dclass/file
dclass: Update CMakeLists for planned architecture.