Create .gitignore

No one likes .class files. Let's ignore them. Also some other things
like Eclipse preferences files.