Add json output option for filename replacement

For some applications it is useful to have a json (key/value) object for updating filenames in a separate build  environment (read a java project in maven). So I added an option for outputting the md5ed name plus the original name to a json file. File name option and an option to turn it on have been added as well.