Migrates library build to Gradle
Migrates tests to Gradle build
WIP