svn-hooks: improve diagnostics

Append to a local log file.
Improve log messages.
post-*: add check for existing of Trac environment.
post-commit-background: add svnperms.conf installation.
svn-hooks: add PATH and document env vars