Feature patch from LJ community and a safe .gitignore addition

I applied a patch that a user submitted to the LJ Community earlier, and also added a .gitignore line to protect against accidentally committing any local config files.