Add gradle files

Update gitignore

Fix gradle build and dependencies
Merge branch 'gradle'