added gradle build file with proguard

Here's a first go. It should be sooo much cleaner but proguard has a pathological dislike of duplication of classes in jar files. This can be solved by fixing the dependencies or ....