Handle verbose logging with convenience function

We constantly have to check the $verbose variable to see if verbose
logging to the console should be done. That is done at all places where
logging is done. This is prone to errors where the check is missed. Wrap
the logging in a convenience function so that the variable only has to
be checked at one place.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>