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