Simplify backend interface.

A good deal of if/then/else is moved to the HTTP handlers while the backend
interface is made simpler. Reading image data is done with a single method and
the return value captures the current state (i.e. whether image json, layer, or
checksum are already uploaded.
Mention rescoyl-checks.