Gradle support

this Pull request adds support for including this library and building via gradle. Also I added a couple of .gitignores to make gitting a bit nicer.