Make sure we consistently use lowercase hash strings.
Add debug action to cleanup rom hashes and fix a bug where -stateFolderURLForROM: would crash for homebrew games.