Fixes bug 976088 - add upsert for processed_crashes storage

* Add crashstorage upsert
* Update tests
* PEP8 fixes

Testing jenkins

Needs to be part of 76 to fix a gigantic logging problem we've got on postgres servers.