Add JSONObjectWithDate:timeZone: to get a date with tz-offset.
Add Tests for +JSONObjectWithDate:timeZone.
Added more auth-failure error codes to CBLIsPermanentError

See https://groups.google.com/d/msgid/mobile-couchbase/35f2db0b-bd47-4579-9afa-23f92745eeb0%40googlegroups.com
Merge pull request #401 from monowerker/topic/date_w_tz

Add time zone support to CBLJSON date formatter
When retrying a replication, make sure to get session & checkpoint

Especially important if the replication initially failed to create a
session or fetch the remote checkpoint, because then we don't have one
at all. (This could have been causing checkpoint conflict errors.)
ChangeTracker should map NSURLErrorUserAuthenticationRequired to 401

The HTTPLogic class returns the lower-level code, but everywhere else
we use 401.
Added unit tests that force replicator auth failures
Fixes for SSL server cert trust checking

* CBLSocketChangeTracker now allows a self-signed cert, provided the
  replicator allows it (i.e. app has configured that root cert.)
* Treat SSL errors as permanent so the replicator will stop on one.
* CBLRemoteRequest now returns the correct error when it comes across
  an untrusted server cert. (Invalid-cert, not auth-canceled.)
Unit tests for SSL replication
Fixed failing assertion in CBLQueryRow due to unset _database

Recent regression due to the view indexing optimizations.
Fixes #403
Merge remote-tracking branch 'upstream/master'