add possibility to specify extra elastic search parameters

This fixes the issue I was having with using another elastic search provider than found.no and they are using https and port 443.

I added an optional parameter elasticOptions that is an object which can contain any extra parameter needed for elastic search and I added plenty of comments to explain what this object does. It also doesn't change how the other parameters were handled so it is backwards compatible.