Refactor and simplify the model

Instead of storing multiple results per resource, store one row per
resource in the database but add last_successful and num_fails columns
to it, computed at write time instead of at read time.

This makes the model code much simpler.
Merge branch 'master' of github.com:seanh/ckanext-deadoralive