Add a .gitignore file.

This commit adds a git ignore file which currently has localrc and
swap files.

Change-Id: Ib3f366a94554e565ab26afbba225560c7a512b47