.gitignore: ignore Vim *.swp file.
Move traffic related code outside of main