new global_logger, used in AVR_LOG(), default is stdout/stderr

resubmitting #11, solution for #8