Backported Buildscript and moved APIs.

Forestry APIs have been moved to Core.