Adding Gradle build file to library project

And adding the associated .gitignore entries