Configurable syslog

Makes syslogging configurable, and use a socket instead to avoid having to have remote syslog reception enabled.