REORG: include: move common/memory.h to haproxy/pool.h

Now the file is ready to be stored into its final destination. A few
minor reorderings were performed to keep the file properly organized,
making the various sections more visible (cache & lockless).

In addition and to stay consistent, memory.c was renamed to pool.c.
diff --git a/include/proto/applet.h b/include/proto/applet.h
index aaa4903..80744ba 100644
--- a/include/proto/applet.h
+++ b/include/proto/applet.h
@@ -25,7 +25,7 @@
 #include <stdlib.h>
 
 #include <haproxy/api.h>
-#include <common/memory.h>
+#include <haproxy/pool.h>
 #include <haproxy/list.h>
 #include <types/applet.h>
 #include <proto/task.h>
diff --git a/include/proto/connection.h b/include/proto/connection.h
index 7ffe1fd..de976d7 100644
--- a/include/proto/connection.h
+++ b/include/proto/connection.h
@@ -24,7 +24,7 @@
 
 #include <haproxy/api.h>
 #include <import/ist.h>
-#include <common/memory.h>
+#include <haproxy/pool.h>
 #include <types/connection.h>
 #include <types/listener.h>
 #include <proto/fd.h>
diff --git a/include/proto/log.h b/include/proto/log.h
index ef792c8..48802dc 100644
--- a/include/proto/log.h
+++ b/include/proto/log.h
@@ -27,7 +27,7 @@
 #include <syslog.h>
 
 #include <haproxy/api.h>
-#include <common/memory.h>
+#include <haproxy/pool.h>
 #include <haproxy/thread-t.h>
 
 #include <types/log.h>
diff --git a/include/proto/obj_type.h b/include/proto/obj_type.h
index f4816b1..402d084 100644
--- a/include/proto/obj_type.h
+++ b/include/proto/obj_type.h
@@ -23,7 +23,7 @@
 #define _PROTO_OBJ_TYPE_H
 
 #include <haproxy/api.h>
-#include <common/memory.h>
+#include <haproxy/pool.h>
 #include <types/applet.h>
 #include <types/connection.h>
 #include <types/listener.h>
diff --git a/include/proto/queue.h b/include/proto/queue.h
index 9bec9b4..d4da40c 100644
--- a/include/proto/queue.h
+++ b/include/proto/queue.h
@@ -23,7 +23,7 @@
 #define _PROTO_QUEUE_H
 
 #include <haproxy/api.h>
-#include <common/memory.h>
+#include <haproxy/pool.h>
 
 #include <types/proxy.h>
 #include <types/queue.h>
diff --git a/include/proto/session.h b/include/proto/session.h
index 522e43f..866217e 100644
--- a/include/proto/session.h
+++ b/include/proto/session.h
@@ -24,7 +24,7 @@
 
 #include <haproxy/api.h>
 #include <common/buffer.h>
-#include <common/memory.h>
+#include <haproxy/pool.h>
 
 #include <types/global.h>
 #include <types/session.h>
diff --git a/include/proto/stream.h b/include/proto/stream.h
index b821cba..80c56ef 100644
--- a/include/proto/stream.h
+++ b/include/proto/stream.h
@@ -23,7 +23,7 @@
 #define _PROTO_STREAM_H
 
 #include <haproxy/api.h>
-#include <common/memory.h>
+#include <haproxy/pool.h>
 #include <types/action.h>
 #include <types/stream.h>
 #include <proto/fd.h>
diff --git a/include/proto/task.h b/include/proto/task.h
index d5cded3..5a3d021 100644
--- a/include/proto/task.h
+++ b/include/proto/task.h
@@ -26,7 +26,7 @@
 #include <sys/time.h>
 
 #include <haproxy/api.h>
-#include <common/memory.h>
+#include <haproxy/pool.h>
 #include <haproxy/intops.h>
 #include <haproxy/list.h>
 #include <common/ticks.h>