fixed signed 16bit amqp framing conversion
refactored code as recommended by michaelklishin for patch submission
Merge pull request #38 from OtherLevels/issue_36

fixed signed 16bit amqp framing conversion