Generate file name hash based on final contents.

For SASS files that use imports, the hash doesn't get updated if one of
the import scss files get changed.  This fixes that and also exposes
the hashing functionality so the hash algorithm or generated file name
can be customized.  Specs still need updating.