Set sourceCompatibility  to Java 7
Add a version file

The version (at the moment 'pre-alpha') is not stored at the
build.gradle.
Merge PRs #653 and #654 from @mkalb - Java 7 and version stuff