Allow sending HTTP request to collections API

It is now possible to create a collection using JS DSL, which will send
HTTP request to Solr collection API endpoint.