Big query

This branch adds ability to send arbitrary list of identifiers and use them as a query. It depends on changes to solr-flask which I'll send separately (but basically; without flask-solr changes; this will not work).