Implement permission inheritance in log module

Quick-and-dirty matching of permissions when new log directories are
created. Currently gets tripped up by the umask with some perms.
ControlPanel: support network module manipulation

Fix #380
Merge commit 'refs/pull/396/head' of github.com:znc/znc