Port tests from JUnit 4 to JUnit 3

Port tests from JUnit 4 to JUnit 3 where possible to allow test to run on android
Convert more tests from Junit4 to Junit 3
Work on getting tests running on android, fix fixture loading
Add missing android permissions, convert basicDatastore tests to use TestUtils for fixture loading
Add AndroidTest project for testing inside an Android app
Run all tests on android via app
Tests all running on android larger tests commented out inorder to pseed up run time, large number of failures
Commit missing new files from last commit
Add task to upload fixtures to device
Correct location of fixutres dir in build.gradle
Change tests to use fixture loader rather than direct file paths
Clean up build.gradle and add more functon to test app

More function added to test app - test app now allows a failure to be inspected, so the reason why it failed and any exception stack trace
is displayed to the user.

build.gradle has been cleaned up to remove no longer needed print statements
Filter out test categories:

so we can emulate integrationTest, performanceTest, systemTest

Also add temp work-around for index_UpdateCrudMultiThreaded which
caused test run to crash out.
Merge branch 'run_tests_on_android' of https://github.com/cloudant/sync-android into run_tests_on_android

Conflicts:
	AndroidTest/app/src/main/java/cloudant/com/androidtest/CloudantListener.java
	AndroidTest/app/src/main/java/cloudant/com/androidtest/MyActivity.java
Start of JunitFormatter, main app can now view tests results witiut rerunning them
Remove gradle wrapper scripts from tree
Merge branch 'run_tests_on_android' of https://github.com/cloudant/sync-android into run_tests_on_android

Conflicts:
	AndroidTest/app/src/main/java/cloudant/com/androidtest/CloudantListener.java
	AndroidTest/app/src/main/java/cloudant/com/androidtest/MyActivity.java
	sync-core/src/test/java/com/cloudant/mazha/OpenRevisionTest.java
	sync-core/src/test/java/com/cloudant/sync/datastore/BasicDBBodyTest.java
	sync-core/src/test/java/com/cloudant/sync/replication/ChangesResultWrapperTest.java
	sync-core/src/test/java/com/cloudant/sync/replication/CouchTestBase.java
	sync-core/src/test/java/com/cloudant/sync/replication/DocumentRevsListTest.java
	sync-core/src/test/java/com/cloudant/sync/replication/DocumentRevsUtilsTest.java