guarantee result_set revision_hash is unique

This does a ``get_or_create`` with results sets now, rather than just creating and causing duplicate entries with ``revision_hash``.  They index on ``result_set`` table in unique, and the jobs model has been modified to handle that properly.