Added PUT support

My PHP is a bit sketchy these days, but hopefully this DTRT, and doesn't break POST.