Cleaned up project structure.

Removed IDE-dependent files, migrated to gradle, converted from android app to android library...