Added IDEA-related files to .gitignore
Setup Gradle build and moved perceptual hashing code to sub-project
Added .grade/ to .gitignore