add missing "var pathHelper = ..."
fix indention of path-helper.js
* add restrictToDirectory to "/createdir"
* add req.query.term to "restrictToDirectory"
* fix ensurePathOk (first restrictToDirectory, then ensurePathExists)