Remove several redundant hash functions.
Switch out needless loop with memcmp and kill one variable.
Make file change message "notice" log level. It is not an error.

Redmine #4638.
Add acceptance test for Redmine #4638.
Merge pull request #1452 from kacfengine/file_changes

Redmine #4638: Cleanups in file changes