Add json to php as it is no longer included by default. Replace hardcoded path to neo4j with a path using an environment variable.
Merge branch 'bugs'
Added error message when user is attempting to load a template without a project.
Precent user from editing a "bad" survey". Use the non deprecated syntax for getting existing data.
Refine the authorisations.  Allow a list of permitted groups to be used in accessing data rather than a single group.