Removed directories and files that should have been in the .gitignore from the outset.
Added a few reasonable defaults to the .gitignore to prevent useless stuff getting committed in future.