Add CouchError to wrap REST errors in Error object

closes #216
closes #213