Add ability to output to syslog

By default, output will go to syslog iff stderr is not a tty. This can
be overridden by specifying -o <dest>, where <dest> can be one of
syslog, tty, auto.