Fri Oct 28 16:07:26 EDT 2016

Web continuations

Basically, building SPAs is a pain.  Use REST whenever possible.
Problem there is to encode continuations.

If security is not a problem, erlang terms serialization of closures
can be used.  Security is likely a problem, so represent the
continuation state as an explicit data structure.  Then use POST to
hide the terms.

Representing state:
- Query strings
- JSON objects

Query strings are ugly anyway, so maybe best to save state as an
opaque BERT, and use the safe mode on BERT decode.