Add index to help speed up some queries

Query that builds PageIndex spends most of its time sorting, this
helps it in some cases. Also named the indexes explicitly, and
dropped the size of display_keyword to 128.
Add a tab style layout for large pageindex lists

After consideration of ajax, cookie and other schemes, went with
adding index tab to page parameter in the url, allowing it to be
applied and passed without concern for what method is serving
the actual page, i.e. keyword(x) provides x to an index list in the
keyword page. Each consumer of the page parameter needs to
be aware that it may contain out of band data.

Signed-off-by: geekwright <richard@geekwright.com>
A couple of fixes for issues from testing