add thumb_prefix and thumb_suffix options for thumbnail-generation path; move all options into new config.json; default to top-level thumbnail cache in config.json, but still default to local-level if no config.json present