update.php: add support for output logging
update_daemon: use getopt; make things a bit more configurable, add help