Add setuid/setgid support

This will break currently since the datadir is installed with the wrong
permissions I believe.

References #42