Am thinking of hosting a Github demo of a bare bones example of code working that does Option A, and at least B as a JavaScript backup as I suggested to combine custom protocol handler/JavaScript fallback work.
Would folks be interested, or interested in helping? cc: @funnymonkey