New log mechanism: log level is now added to message. Added convenience log macros.

Had to change log_level from scoped to normal enum, since we're still
using it as array index into the log level info table and that's not
easily possible without a scoped enum.