confine.lua: automatically start RestAPI daemon (unless disabled)
confine.lua: log terminating and remove pid file
confine.lua: fixing error reporting and directory setup
confine/*.lua/init: fix signal handling and err logging