Added support for PUT and DELETE

Only GET and POST were supported, this PR adds support for PUT and DELETE as well.