Clean up test script to be a bit less hard-coded
and use more gradle idioms
Merge branch 'run_tests_on_android' of github.com:cloudant/sync-android into run_tests_on_android