Removed deprecations, fixed tests and added post data to requests.

This PR makes the tests runnable under the latest ruby, fixes some deprecations and adds the ability to attach post data to a request.

Should further PR go into your gem or into the gem of @drogus?