add support for rejecting messages.
Merge pull request #24 from jonnii/rejection

Support for rejecting messages.