Ignore content files ending in ~

Also add *~ to .gitignore
Add test for ignoring ~$ files