Error, warning and debug messages are now printed on stderr.
Also allow BEER to be loaded from a function.