Support for put/post
Made response generation more generic
Added debug to posix version
PUT/POST support