move messageEncoder declaration to AbstractTransport
return byte-count instead of true for HttpTransport#send