Order search result processing

As AJAX requests order is not guaranteed we need to ensure that
result are processed in the correct order. This is achieved by
adding a query id that can be used to order the results.
Ensure that the processing style is added/removed

Use a counter to keep track of pending queries. When the counter
drops to zero the query is complete and processing style is removed.
Merge branch '119-order-search-results' into next