Added ability to pass command-line args to Gradle on project sync/refresh.

This is necessary for passing project properties when syncing and
building Gradle-based Android projects.

Change-Id: I5db0878f473edde36ab9f625e112ea90162ddd5a
(cherry picked from commit 1dc83a9)