Support for Gradle run task.

Added support for the Gradle run task to the helloworld example.

It is necessary to set run.standardInput so the app won't quit immediately.

Unfortunately, "gradle run" needs to be started with the -q switch. Otherwise the output gets garbled by Gradle output. This will be addressed in a future Gradle version.