Retry on erroneous POST requests.

Marek,
I've tested your suggested solution using isRepeatable but it's not good for me. POST requests, in my app, are still being discarded on first retry error.
I've re-implemented the suggested change without much changes in the existing code. I think this is cleaner and could be merged rather safely.
Thanks :)