Query parameters and other stuff

Added support in models.persist for parameters to canned queries.
Better support in TermId for ordering.
Stuff that may conflict with work that Jay has done.

Eliminate hard-coded query parameter.
Work-around for Jay's authentication issues.
Add <pre> tags to query display.