Add .metadata and *~ to .gitignore.