Added unit tests for CBLMultipartDocumentReader, including gzip support
More MIME gzip encoding unit tests
Removed CBLReplication.propertiesTransformationBlock from public headers

The API hasn’t been through review, and it’s almost certainly subject to future change because
it doesn’t support attachments. We’ve decided it shouldn’t be exposed in a public header yet.
(See #251)

Clients can keep using it but they’ll need to declare it themselves, like:

@interface CBLReplication
@property (strong) CBLPropertiesTransformationBlock propertiesTransformationBlock;
@end
Fixed compiler error in Release build
Bumped version to 1.495 for beta 3
Code that demonstrates unexpected behavior with regards to completedChangesCount of replicator observer.
Fixed an assertion-failure when a _bulk_get download can’t parse a JSON doc

Fixes #232
Fixes #271
Merge branch 'replicator_observer_issue' of github.com:couchbase/couchbase-lite-ios
Don’t set replication progress to 0/0 when stopping

Instead the progress should remain the way it was.
Also, improved Traun’s great new test for verifying that progress counts make sense.
Fixes #274
Fixed a couple of minor warnings reported by Xcode 5.1
Fixed WebSockets bug with zero-length messages

The WebSocket class broke when it received a zero-length message, which
is what the _changes feed sends when it's caught up.
Fixes #272
Replication encoding/encryption API now supports attachments.

During a pull, the _attachments objects for large attachments will have
a temporary "file" property that points to the local file path where
the attachment data can be found. The transformation block can read this
file, but must not modify it.
Removed all deprecated API methods.
Fixed incorrect values from CBLUnsavedRevision and CBLAttachment, for unsaved attachments

CBLUnsavedRevision:
-attachmentMetadataFor: and -attachmentNamed: would return nil for an unsaved attachment.
-attachments wouldn’t return any unsaved attachments.

CBLAttachment:
.length would return 0 for an unsaved attachment.
Optimizations for view indexing and querying

These shave a significant amount of time off of Ashvinder’s Test 12.
WebSocket changes feed was sending ‘since’ to SG as string, not number

This unfortunately caused the changes feed to start from the beginning every time.
Oops, removed some leftover debugging code from the last commit
Puller was getting confused receiving JSON-only docs (no attachments) with gzip response encoding

It was looking at the “Content-Encoding: gzip” header and thinking that this was a JSON _part_ that
was encoded, so it tried to decode it itself. Whereas the top-level gzip decoding is done already by
NSURLConnection. So it was trying to gzip-decode plaintext, oops.
Fixes #281
CBLModel improvements (-willSave:, empty _attachments)

* Made -willSave: public (it was always meant to be but I forgot to add it to the header)
* Fixed some situations where a model could end up with an _attachments dictionary with zero elements
* -propertiesToSave wasn’t including _id prop if doc was new; caused trouble for signed documents.
Replication encoding/encryption improvements

* Transformation block can now return nil to skip the document (useful on pull if it’s invalid)
* Assign correct revpos to an attachment created by a transformer during a push