Never include ~ files

Files ending with a tilde (~) are very often editor backup files.
These should never be commited and this patch adds a .gitignore file
and ignores *~

Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>