Fixes for WebDAV

We've encountered a few problems when getting Solr working with WebDAV.

These modifications were required to get the module working with multiple Solr instances on a single remote server.