Added support for PUT and PATCH requests.

Missing more complex test for these.