Still gutting a lot of the old code, but this MR focuses more on ensuring that a file can be added and that the metadata gets saved.