Fix some bugs.

* Extractor registrations have to be sorted.
* There's a tiny delay (about 1s) in committing to Solr, so we have to
  use rt:wait_until/1 for the queries.
* URL-escape fields and terms in search queries going over HTTP.
* Cleanup whitespace