Added support for hashing of master files (tests included).