Gradle cli more automated

Formatted the gradle source so easier to read. 

Added functionality to the gradle task "downloadCli" which now makes the binaries in there executable so it is not a manual process each time you update.