Change PUT to POST, POST to PUT, and fixed problem with doing a DELETE.

Here is the stuff from earlier...