Handle POST failures after Blockly runs

This is the first of several PRs to coming regarding supporting readonly mode.

Should be best/easiest to review this commit-by-commit.