Added template for .gitignore files.

Additionally, tidied all git files into their own directory and added a README for clarity.