Remove td_rev from CDTDocumentRevision

Make contrsuctors which take the needed TD_Revision attributes as params
and remove the TD_Rev property

Not wrapping TD_Revision within the CDTDocumentRevision class makes it easier
to work with revisions
Merge pull request #60 from cloudant/34405_remove_td_revision

34404 remove td revision from CDTDocumentRevision
Port tests for CDTIndexManager to new CRUD API
Fix bug where new create CRUD API didn't fire change notifications
correctly

The notifications from TouchDB happened within a transaction for
the -createDocumentFromRevision:error: method, which probably meant
that any database calls happening in the notification callback didn't
see the changes the notification was in response to.

I therefore added a call to the notification handlers when we've
closed the transaction if it was successful.

I think there's still an issue with deleteDocumentById:error: right now,
but it needs further investigation.

RTC 52139
Add notifcation tests for new CRUD API
Set OBJC_DISABLE_GC to allow running tests in Xcode 6

We still allow tests to run on both Xcode 5 and 6.

This means we have to have com.apple.product-type.bundle (which Xcode 5
understands but Xcode 6 likes to change) and the OBJC_DISABLE_GC that
Xcode 6 needs to run the tests.
Fire summary notification when calling -deleteDocumentWithID:error:
Merge pull request #61 from cloudant/34357_index_manager_not_updating

34357 index manager not updating
Fixes CDTDatastore -getRevisionHistory, which was returning an empty array
Passes empty body to CDTDocumentRevision init method so that it doesn't return nil.
Merge pull request #62 from cloudant/35614-CDTDatastore-getRevisionHistory-returns-empty-array

Fixes CDTDatastore -getRevisionHistory, which was returning an empty array
Add NSPredicate query support to Cloudant Sync

This allows using an NSPredicate to generate the SQL for querying
over Cloudant Sync indexes, rather than using the dictionary
format. The dictionary format is left available, for those who
would rather use it.

The main NSPredicate to SQL processing happens in
CDTQueryBuilder, and CDTIndexManager has methods taking
NSPredicate objects added.
Merge pull request #57 from cloudant/NSPredicates-Support-For-Queries

Ns predicates support for queries
Pin FMDB version to 2.3
Remove deprecated APIs

- Remove deprecated APIs
- Remove legacy API mode to document update internals
- Remove usage of deleted APIs from Sample
- Changed the description property in CDTTodo to taskDescription to fix
  warning about property redeclaration (description is declared in
  NSObject)
- Changed test file names, removing suffixes indicting new API tests
- Updated CHANGELOG.md
- Created API migration document
Merge pull request #64 from cloudant/35676_remove_deprecated_apis

35676 remove deprecated apis
Prepare for 0.8.0 release.
Add 0.8.0 release date to changelog
Updates ReplicationAcceptance project to use new API.
Removes declaration of undefined -documentAsDictionary method.
Updates conflict resolvers to use new API.