Import the COFH API & add gradle

The full API has been included, this needs to be trimmed wAAAYYYY down.

Gradle added to github to hopefully allow for internal build automation.