Added some fixes to log.c and more options to ONION_LOG environmental var for default logging.