Add support for PUT requests

Closes #52