Support compressed data downloads

Support downloading of compressed attachments if that
attachment can be compressed as determined by the
att_encoding_info=true doc query parameter
Merge pull request #54 from cloudant/compressed_http_attachments

Support compressed data downloads
Allow Slashes in DB name

Allow slashes in DB name when extracting from uri for
replication

Added end to end replication test for DB that has a slash in it's
name
Merge pull request #55 from cloudant/extract_dbname

Allow Slashes in DB name
Expose compact() in the Datastore interface
Merge pull request #58 from cloudant/expose-compact

Expose compact() in the Datastore interface
Expose constructor with source rev

- Expose constructor with source rev
- Enable someone outside of the package to read
  the sourceRev via a getter
Merge pull request #57 from cloudant/expose_srcRev

Expose constructor with source rev
Add buildMutable method to DocumentRevisionBuilder

- Added buildMutable method to documentRevisionBuilder
- Changed visibility of MutableDocumentRevision sourceRev  constructor
  to protected
Merge pull request #60 from cloudant/mutablerev_documentBuilder

Add buildMutable method to DocumentRevisionBuilder
Don't return deleted docs for conflicts

Don't return deleted docs for conflict resolution. Deleted documents are not normally
in conflict, in CDTDatastore conflict resolution does not return deleted leaves.

Modify test which expects a winning rev to be deleted to expect no rev provided as
a conflict is deleted.
Merge pull request #59 from cloudant/42500_deleted_docs_conflict

Don't return deleted docs for conflicts
Upgrade android plugin to 1.0.0
Upgrade gradle version to 2.2.1
Merge pull request #61 from cloudant/upgrade_gradle

Upgrade gradle
Fix documentation errors on jdk8
Merge pull request #62 from cloudant/42597-jdk-7-fixes

Fix documentation errors on jdk8
Add Code style settings for intellij
Add example of code formatting