Refactored project for IntelliJ IDEA and Android Studio

Switched to Gradle for building