Revert "Tidy up .gitignore and add .hgignore" because it makes a couple of files untracked that were ignored before

This reverts commit 1d8a66950619334d0b8f613841cde97ab1e43122.