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
Fix the TestCase by checking for current revision

The Document object is created everytime and it doesnt make any sense to check if
that object is null. Instead the currentRevision will be null if the validation
actually failed.

Also, removed the validation and made sure that the same document was fetched properly
Issue #206 - edit test per comment "The second pull replication won't add the document.."

https://github.com/couchbase/couchbase-lite-java-core/issues/206#issuecomment-44352921
Revert "Fix bugs in previous PR & got more tests to pass"

This reverts commit 25e18a976b9020dc509a862bbe51c99fc87fca94.
Revert "Fixes for issues 280, 283, 285, 287 & 299"

This reverts commit 6d6576bb8a9685ce7841a938a59b57e57aa6d022.
Update submodules
Fixed Java7 dependency in ViewsTest.java

java.util.Objects which is a Java7 API was used in failingTestViewQueryWithDictSentinel() method. Per checking with @tleyden, change from HashMap<String, Objects> to HashMap<String, Object>.
test to reproduce db.deleteViewNamed() does not remove the cached View

https://github.com/couchbase/couchbase-lite-java-core/issues/219
add failingTestGetAttachmentAfterItDeleted

https://github.com/couchbase/couchbase-lite-java-core/issues/218
issue #301
Enabled testPutDeletedDocument to test patch applied to java-core
Merge pull request #322 from couchbase/feature/issue_301

issue #301
Issue #207 - Update tests per change

https://github.com/couchbase/couchbase-lite-java-core/issues/207#issuecomment-44339498
update submodule
Issue #288 - remove unneeded string.format

https://github.com/couchbase/couchbase-lite-android/issues/288
Fixes #288 - rework test

https://github.com/couchbase/couchbase-lite-android/issues/288
update readme with info on getting latest version