channel method in pubsub
wait_for_body_middleware tolerates parsing errors
improved wait_for_body_middleware. Fixes #80