hashing: Cleanup and refactor.

FilePaths need to be supported.
anidb: Working towards file management.