fix spelling errors
upgrade to couch-db@0.2.1
refractor error handler