Moved to gradle with Android Studio

Nothing special in the build.gradle yet
Format code with Android Studio
Fix deprecated method