Add build.gradle and Change .gitignore

Add build.gradle so you can use gradle to build the sample