Work through schema changes from cleaning up datadir and datafile.
put files and directories back into the schema and reverse out the
changes where we removed them.
Add prefix to gorethink import
Correct call to NewFile to reflect change with new schema.
Save comment on cleanup.
Merge branch 'schema-changes' of github.com:materials-commons/mcfs into schema-changes
Fixup failing tests.
Add ByPath, ByChecksum and Hide methods. Update unit tests to include
new methods.
Move datafileLocationID and datafileSize to util.go. Rename
dataFileLocationID to datafileLocationID in move to make the names consistent.
Add comments.
Add comments
Cleanup comment.
Clean up comments. The comments referred to the wrong type.
Rewrite createFile. Right now for this checkin both the old and the new
code exist.
Run go fmt.
Update for testing and cleanup of comments.
Remove t.Fatalf call that stopped the test so we could look at the database.
Remove the old code for createFile. Rename the createFileHandler2 type
to createFileHandler. Remove some duplicate code in createNewFile and
createNewFileVersion by consolidating it into newFile. To consolidate
the code into newFile I had to make newFile a method off of
createFileHandler so that it could access the files service member.
Add comments to the methods.
Replaced the handler functionality. Much of the code for accessing the
database was moved into a set of services. This meant that the little
bit of application logic could be moved back under its respective
request handler.