Add a .gitignore file to the source directory

Closes #295