Move loggic from `DumpTask` and `DumpMojo` to a helper class in new package `org.jacoco.core.tools`.

As discussed in #107.