For bulkSave, update _rev in properties from save response.

[Tweaked by snej to simplify the code]
Fixed incorrect class name in CouchEmbeddedServer.m

This only affects clients that still use the old/deprecated Couchbase Mobile framework.
Avoid redundant KVO notifications of Couch*Replication.error

Fixes TouchDB 176
Avoid [document propertyForKey:] when the model isNew (see #28)
Merge pull request #52 from martijnwalraven/master

Attempt to fix #28
Added the mapOnly property to CouchQuery, which allows performing a map query on a view with a reduce function.
Updated comment on mapOnly property to make its purpose clearer.
Merge pull request #53 from dlvenable/map-only-view-queries

Ability to query map-only on a view
Fix 32-bit Mac build failure

Previous commit used an undeclared ivar in an @synthesize.
This is legal in the new runtime but not the old (32-bit Mac) one.
Update README.md
Merge pull request #55 from stuffmc/patch-1

Update README.md
Update class names from TouchDB that were renamed

TouchDB renamed classes from TD* to TD_* in commit 677ba7c.
Issue #194 Ability to delete a document while preserving some properties (feature request)
Add EOF newline to RESTResource.h

Adds missing newline at EOF
Merge pull request #62 from ntodd/patch-1

Add EOF newline to RESTResource.h
Work around an NSCache deadlock.

Defer the NSCache release in RESTCache's dealloc, in case the NSCache is already in
the midst of flushing itself (in which case deallocing it will cause a deadlock.)
Fixes https://github.com/couchbaselabs/TouchDB-iOS/issues/216
Return better error when RESTOperation fails auth

If using RESTOperation to talk to a remote server (not TouchDB), if no credential can be found for an auth challenge
it should call -continueWithoutCredentialForAuthenticationChallenge: instead of cancelAuthenticationChallenge:.
This will ensure that the error seen by the client is an HTTP 401 instead of "NSURLErrorDomain error -1012".
Fixed a race condition with doc update notifications

If changes happened quickly enough, it was possible for the onCompletion block of a document save operation
to be called _after_ the document got an external-change notification of a _later_ revision. (This occurred with
CouchPersistentReplication on its initial save -- the replicator manager immediately updates the document with
a task ID and "triggered" state, and this change was arriving before the model was told it had finished saving,
so it wasn't ready to respond to external changes yet.
Fixes https://github.com/couchbaselabs/TouchDB-iOS/issues/187 , I think.
Added -installCannedDatabase:withAttachments: method

Allows you to ship a database file with an app and then install it on
the first launch.
Added API for creating persistent replication even if one already exists

This allows for multiple replications with different filters, between
the same databases.