Further work on checksums

To test, try importing and suchlike to make sure that imports and viewing still work as before, and watch the `originalfile` table in the database to ensure that its `hash` and `hasher` columns are properly populated.