Refactor and document build.gradle so fellow Ruby-ists can follow it more easily