Using reflection to access gradle internal API.

This commit fixes #83.

Now the methods in InternalGradle use reflection to access the internal gradle API. In case of fail (what should not occur) the IllegalStateException is thrown.