update gradle to 2.2.1 and android gradle build tools to 1.0.0-rc1
untrack Android Studio(IntelliJ IDEA)'s *iml files
separate app into library and sample subprojects
add `bintrayUpload` publishing task

see https://github.com/bintray/gradle-bintray-plugin