Refactor gitignore and build.gradle

MovingBlocks/Terasology#535