added application plugin to gradle

http://www.gradle.org/docs/current/userguide/application_plugin.html