Add gitignore file

This PR adds a gitignore file for C sources.

It is based on the official gitignore file from github for C projects, including some other entries for (for example) youcompleteme (a vim plugin).