Add ability to drop privileges to specified user and group and to execute privileged action before

Fixes #9