PAMI transport using thorium's memory management

This version of PAMI transport uses thorium's memory management to request a memory buffer when a message comes and to return the memory buffer back to thorium when the message is returned.