pass config to spawner
setgid and chdir before setuid
Merge pull request #42 from minrk/master

pass config to spawner