Whitespace fixes by clang-format
Upgrade logging to be compatible with CocoaLumberjack 2.0.0-beta4

Upgrade CDT Logging macros to use the new updated logging macros
from CocoaLumberjack 2.0.0-beta4. This will mean that it will not work
with versions below 2.0.0-beta4, thus also pin podfile to
CocoaLumberjack version 2.0.0-beta4
Fix attachment downloading

Fix issue where an attachment will only be downloaded once per
program instance not per class instance. This was caused by using
dispatch_once which should only be used for singleton set up
Merge pull request #85 from cloudant/cocoalumberjack_logging_beta4_upgrade

Cocoalumberjack logging beta4 upgrade
Prepare for 0.11.0
Restores contents of CDTDatastore workspace.
Merge pull request #86 from cloudant/fix-cdtdatastore-workspace

Restores contents of CDTDatastore workspace.
Creates individual threads for each TDReplicator.

This commit moves all of the threading code from TDReplicatorManager
to TDReplicator so that each TDReplicator executes on its own thread.

No tests are yet written to monitor simultaneous replications.
Fixes security issue where passwords were being sent to the log.
Adds test for multithreaded replication.

Two pull replications are executed simultaneously, pulling
from the same remote database to two different local databases.
A delegate captures updates from the replicators and determines
if the replicators were operating simultaneously.