log: add some logging

Logging is done with `hslogger`. It is controlled by using some
command-line flags. `-v` enable more verbose logging. `-l` allows one to
log to a file in addition to stderr.