centralized printf formats and improved log_displayer performance

Before, log_displayer copied each message into the same structure that
gets put into queues etc so that it could be printed with the same
function. Now, it prints it directly, but using the same formats.
diff --git a/aos/common/logging/logging.h b/aos/common/logging/logging.h
index 673cc9a..114007b 100644
--- a/aos/common/logging/logging.h
+++ b/aos/common/logging/logging.h
@@ -8,6 +8,8 @@
 #include <stdint.h>
 #include <stdlib.h>
 
+#include "aos/common/macros.h"
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -28,9 +30,6 @@
 DECL_LEVELS;
 #undef DECL_LEVEL
 
-#define STRINGIFY(x) TO_STRING(x)
-#define TO_STRING(x) #x
-
 // Not static const size_t for C code.
 #define LOG_MESSAGE_LEN 400