Extract version to gradle.properties

Extract definition of version number from build.gradle to gradle.properties