Finish the implementation of post data for onResourceReceived

Add tests, docs and fix last issues.

Closes #69.