Add common.h, that does what it is supposed to do.
Add a gitignore.