Updated .gitignore, and added editorconfig

All os specific files should be removed from this file, and should go in the global .gitignore file.