Implement payload max bytes check.
Merge pull request #2 from jwage/feature/max-payload-bytes

Implement payload max bytes check.