updated mintjson so writes to metadata.json.
updated recordIDPrefix to get last part of path from incoming rules name.