examples: Provide Maven and Gradle build files

The examples are no longer part of the normal build, although they are
built with Travis. The examples now include their own copy of the gradle
wrapper to ease usage from IDEs which can now properly detect the
correct version of gradle to use.

The build files were generated using "gradle init" and "mvn
archetype:generate" and then modified following our README.

Fixes #1414
diff --git a/.gitignore b/.gitignore
index 1bebb5b..eb0afe5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,9 @@
 .gradle
 local.properties
 
+# Maven (examples)
+target
+
 # IntelliJ IDEA
 .idea
 *.iml