Add errors where the switch default target was just falling thru
CouchDB read now create a view based on the clause list and runs it. Added function for writing json data to CouchDB. Change usage of curl object and better initiated the curl object for each request. Start working on create.