Build improvements.

Updated to latest Gradle, aligned closer to previous SBT build and rationalised all configuration.
Merge pull request #146 from alkemist/master

Some Gradle related minor improvements.