Updates driven by Long Line implementation

In addition to Long Line updates, this revision contains the seeds
of multi-tenant security.  This isn't working yet, but the comments
and tests show what has been tried and found wanting.