Using reflection to access gradle internal API.

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