improves speed of basic.publish
reduces calls to fread
removes old code
adds constant for AMQP types
caches call to strlen