Fixed up the privilege lowering code.

user and group _names_ are now specified as "user"/"group" instead of "gid"/"uid", which is kept for backwards compatibility. Also invalid uid/gid values will result in an error and any configuration error now causes the application to terminate.