Adds "play" task to gradle build.

There's some work needed in order to get stdin/stdout working properly.

Gradle hogs both streams in a way that the default "run" task from
the "application" plugin does not work.
At least not for applications that accept input from stdin.