Moved memory pooling to core functionality

New memory.o object to provide memory pooling to any module
tcp_proxy module updated to use this change