Branched from iamsteveholmes/scrooge-gradle-plugin, add lots of refactoring and tweaks