added ensure_permissions script
Merge branch 'master' of https://github.com/fmof/loglin
adding hooks, testing compat