[#399] Implement DATA_DIR config variable in json-plugin

Modify the json-plugin to use the configuration variable DATA_DIR when
creating and accessing the plugins cache folder.

This is so the plugin templates can survive a deployment without the need
to re-instantiate them all.