A JSON REST API for the ZenPhoto photo gallery PHP script