Add commit-msg hook.
Add .gitignore so swap files and stuff are not tracked.