build: Extract common config to top-level build.gradle
We can inject plugin, repositories and dependencies directly from
the top-level build.gradle.
This extracts a common version of junit for all projects (and
updates anagram to use assertj, the junit matchers did not work
with 4.12).
Gradle can be run directly on Mac/Linux/Windows and
auto-download dependencies (much like sbt for Scala),
as well as simplify IDE integration.
Add appropriate .gitignore for this sub-tree.
For developers, to add a new exercism:
cp -r _template new-exercism
# create test in new-exercism/src/test/java/SampleTest.java
git add new-exercism
Users will be able to just run "./gradlew check" to run tests.