add test reproducing crash when concurrently calling Manager.getDatabase

Calling Manager.getDatabase() twice concurrently can cause:

java.lang.NullPointerException
            at com.couchbase.lite.android.AndroidSQLiteStorageEngine.execSQL(AndroidSQLiteStorageEngine.java:95)
            at com.couchbase.lite.Database.initialize(Database.java:888)
            at com.couchbase.lite.Database.open(Database.java:918)
            at com.couchbase.lite.Manager.getDatabase(Manager.java:229)
Merge pull request #297 from mjq/get_database_crash

Add test reproducing crash when concurrently calling Manager.getDatabase
update submodules
Comment out sporadically failing test testOnlineOfflinePusher
Revert "Comment out sporadically failing test testOnlineOfflinePusher"

This reverts commit 7f8590a2d61d67ea26903e940c13f926cc672f5a.
Revert "Revert "Comment out sporadically failing test testOnlineOfflinePusher""

This reverts commit b137315878849d2b2d780f56d3383c55f687d174.
Revert "Revert "Revert "Comment out sporadically failing test testOnlineOfflinePusher"""

This reverts commit 4e35b4483a6ad48383990b3f58a737cd40e82487.
Issue #301 -- add slightly modified test

https://github.com/couchbase/couchbase-lite-android/issues/301
Issue #292 IllegalArgumentException: Receiver not registered

Add debugging and exception handling.

https://github.com/couchbase/couchbase-lite-android/issues/292
Issue #301 -- force test to reload properties

https://github.com/couchbase/couchbase-lite-android/issues/301
Merge pull request #306 from pamalyshev/testPutDeletedDocument2

Issue #301 -- force test to reload properties
Issue #301 - mark test as failing

https://github.com/couchbase/couchbase-lite-android/issues/301
remove replicationTestsEnabled
Merge branch 'refs/heads/release/1.0.0'

Conflicts:
	libraries/couchbase-lite-java-core
add testViewQueryWithDictSentinel

https://github.com/couchbase/couchbase-lite-android/issues/314

currently the test failed for options:
a) setInclusiveEnd(false)
b) setDescending(true)
Fixes for issues 280, 283, 285, 287 & 299

https://github.com/couchbase/couchbase-lite-android/issues/280 -
	Moves mavenLocal() from buildscript/repositories back to
repositories where it belongs.

https://github.com/couchbase/couchbase-lite-android/issues/283 -
	Fixes the while in RouterTest so it will exit if activeTasks.size()
doesn't shrink.

https://github.com/couchbase/couchbase-lite-android/issues/285 -
	Makes LiteTestCaseBase (see below) inherit from AndroidTestCase

https://github.com/couchbase/couchbase-lite-android/issues/287 -
	Supports a new property, LiteListener, that if set to 'true' will
cause a Lite Listener to be started. So now one can run the tests using
the listener instead of having to have the Sync Gateway.
Also includes the code to create the Listener.

https://github.com/couchbase/couchbase-lite-android/issues/299 -
	There are really just two changes we need. One is to change what
TestCase we inherit in if we are in Android or Java. The other is to
change how temporary files for the listener (287) are created. To make
this possible we did the following:
* LiteTestCase now inherits from LiteTestCaseBase
( LiteTestContext now inherits from LiteTestContextBase

Now the trick is that both LiteTestCaseBase and LiteTestContextBase are
defined in the com.couchbase.test.lite namespace. This is intentional!
That way we can define Android and Java versions of both of these classes
in their respective projects and then just blindly copy
com.couchbase.lite classes from androidTest to Java tests. Because the
android/java specific classes (LiteTestCaseBase & LiteTestContextBase) are
in their own separate namespace we can check them in and things will just
work when we compile.
Fix bugs in previous PR & got more tests to pass

build.gradle - Cleaning up declaration of listener dependency so it works
in Couchbase's environment

LiteTestCase - Get rid of logic that deleted test files from here to
context.

LiteTestContext - Allows caller to decide if subdirectory with data should
be deleted before test is run. By default the answer is yes.

Test9_LoadDB - The code assumed that DEFAULT_TEST_DB exists but since we
are re-using the same instance of LiteListener (due to TJWS bugs) we can't
rely on that so we create the DB if it's not there.
Fixed bug in isSyncGateway
add test reproducing infinite loop in View.updateIndex

When the final document to be indexed is a design document with
conflicts, updateIndex hangs in an infinite loop.

https://github.com/couchbase/couchbase-lite-java-core/issues/214
Test case for ValidationBlock not called

Validation Block doesnt get called as part of forceInsert method. When
pushing a document to sync gateway, the validation block should be called
during replication, but seems to be ignored.

Issue #: https://github.com/couchbase/couchbase-lite-java-core/issues/206