Fixes bug 976088 - add upsert for processed_crashes storage
* Add crashstorage upsert
* Update tests
* PEP8 fixes