Add swp files to git ignore
Change failing test to test for localhost (other domains must have at least one .)
Add localhost as an allowed domain (the assumption is still that all other domains must have at least one .)