Complete *.gradle overhaul

Inspired from:

* https://github.com/Ninja-Squad/DbSetup/blob/master/build.gradle
* https://github.com/judoole/monitorino/blob/master/monitorino-core/build.gradle