Ported examples to Groovy

… using Groovy as Java++ for examples since we don't have Java 8 yet (and won't be able to use it inside RxJava since we have to stick to Java 6 for Android).