Add QUIET variable. Improve log functions.

QUIET=<true|false> determines whether or not to use notify-send.