test that Database.addChangeListener is idempotent

https://github.com/couchbase/couchbase-lite-java-core/pull/221
Merge pull request #323 from mjq/db_listener

Test that Database.addChangeListener is idempotent
Revert "Revert "Fixes for issues 280, 283, 285, 287 & 299""

This reverts commit df92dd2cbc11d07ada13f6605ec1bc5fcbff20c0.
Revert "Revert "Fix bugs in previous PR & got more tests to pass""

This reverts commit 151928cb121f846e0abfde3d34baa139a697704a.
Issue #300 - add git submodule for java-listener module.

https://github.com/couchbase/couchbase-lite-android/pull/300
update submodule
Add comments
Fix for #239

Unfortunately I can't really test this because my build environment is very (very) different than Couchbase's. Once couchbase switches to using gradle properties then everything will be fine. But that's a different bug.

The only interesting change is that I introduced a new variable, MAVEN_BUILD_LOCAL. If set to true then the system will upload to mavenLocal(). Otherwise it will upload to the Maven depot specified by MAVEN_UPLOAD_REPO_URL.
Merge pull request #324 from yaronyg/patch-1

Fix for #239
added test case for issue 225 (reduce key grouping does not work correctly for variable-length keys)
Issue #226 -- attempt to reproduce, so far unable to.

https://github.com/couchbase/couchbase-lite-java-core/issues/226
add testSetAttachmentsSequentially

* attempt to reproduce https://github.com/couchbase/couchbase-lite-android/issues/328 &
* https://github.com/couchbase/couchbase-lite-android/issues/325
Merge pull request #329 from pegli/features/issue_225

test case for issue #225
CBLT-318 - this had the wrong artifact id

http://www.couchbase.com/issues/browse/CBLT-318

Conflicts:
	build.gradle