Added Gradle configuration

Just a migration of the main library, not the test suite.

Only a configuration file to let Android Studio compile this module.