Fix tests for exception catches on file stats.
Update .gitignore for use with tern.
Emit deletes safe so they correspond to create events.
Add test for snr replacement.