Various fixes to get it running in my project

See https://github.com/lucasr/probe/issues/14 for more discussion. I also added the gradle tasks installLibrary and installPlugin to get it into my local repo more easily for testing.

I tried to follow your coding / commit message style, but I'm happy to make any changes you want.