Switch to gradle build system

Fixes #25