Add a nose config file to check coverage in tests

Also adds appropriate files to .gitignore.