Add .gitignore.
Fix guards.
Get rid of SVN-specific script.