Added the put and delete function for http. Added the add attachment support for couchdb.