Added basic Gradle config, fixed .gitignore

Just installed Gradle for the first time and trying to work out how to
use it :P Made a config which should work, and told Git to ignore the
temp dir.