UI: Kill permanodesWithAttr() in favor of generalized search.

Also give 'show roots' a URL and history entry.

Change-Id: Iaec6fd16dab897daa5a2b0623490b82c3b606281
search: validate queries

Change-Id: Icc2840852a878b1afdfb7be97ddd50008422f0f7