Added gitignore and gitattributes with Gradle mods.
Fixed an NPE in FMLSanityChecker.