Allow users to pass in additional kwargs to Solr and Elasticsearch backends

Fixes #674, #862