Remove autogenerated files from git and create .gitignore

This makes "git diff" and "git status" work properly,