Model now handles indexedDB lookups with either a url or
a hash directly

 + Added tests to reflect this