Fixes in gradle build. Removed some IDE files. Fixes in gitignore.