Added compatibility with grunt-hashmap, plus lots of other stuff

I've been using a different hashing plugin that uses a different json format (only the hashes) and more flexible file naming options.

I was about to fork this and make a new plugin, but I figured I'd merge it back in as expanded options on yours.

I also added a prefix option, and made the code much more efficient and error-proof.