move:consistency check logic from resource to model

Addressing review comments:
Consistency check now takes place in the model, and exception thrown
if consistency check fails. The exception is caught in on_head function
of Block's Item Resource and corresponding status code (502) set
in response.