Added some more CBLModel unit tests.
Handle HTTP digest auth correctly in TDRemoteRequest

Fixes couchbaselabs/touchdb-ios#269