Move to Gradle 1.3

- Update the wrapper and wrapper scripts to force 1.3

- add gradle version detection to the android plugins
  to make them fail if the version of gradle is not right.

- Ensure the test projects are built with the right
  version.

Change-Id: Ibd2d970f9bdf98acbca54847eb493b3379532d99
diff --git a/gradlew b/gradlew
index e61422d..91a7e26 100755
--- a/gradlew
+++ b/gradlew
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 ##############################################################################
 ##
@@ -61,9 +61,9 @@
     fi
 done
 SAVED="`pwd`"
-cd "`dirname \"$PRG\"`/"
+cd "`dirname \"$PRG\"`/" >&-
 APP_HOME="`pwd -P`"
-cd "$SAVED"
+cd "$SAVED" >&-
 
 CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar