Add gradle build config for core

Enables integration of the core source as a library for gradle projects which don't allow
Java (non-gradle) library projects (currently the case with AndroidStudio).