Initial port of gradle-jacoco into core.

Here's my initial attempt, which is just moving the code over and updating package names and meeting your checkstyle and codenarc standards.