Allow writing to $basedir.

* [ ] Ready for review
* [x] Allow writing to $basedir.

This change is required so that the datastore application can create the ```log``` and ```data``` directories in the basedir when it starts up.  Unfortunately the permissions on basedir are hardcoded in the camptocamp/tomcat module so we have little choice but to fork and modify.