Add version for Java to build file

The project relies on Java version 7 so adding dependencies to gradle
build. These will be deprecated in gradle 2.0 but work for now.

Also updated gitignore to exclude meta-files.