[#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.
Merge pull request #410 from akvo/feature/399_DATA_DIR

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