PROTON-467: Stop initializing encoder and decoder for each message sent/received

the really expensive part is the call to registerAllTypes()
create a thread-local reusable instance of both