Conversion to Android Studio & Gradle

Completely converted the project to work in Android Studio and with the
Gradle build system.