Add ability to specify createServer options

Is backward compatible with providing server instance itself.
Added tests, however that required fixing multiserver issue in