Generates Version class from gradle automagically

- A reply from the gradle forum gave the solution to write the file as
  the task 'generateSources' to update the Version class with the gradle
  version.
- Fixes #13