Add CouchError to wrap REST errors in Error object

closes #216
closes #213
Merge pull request #235 from holic/master

Add CouchError to wrap REST errors in Error object