Added options param with option to start https server

We had some tests that would only work when the server is running https mode so I added an options param which when https is true and key / cert are passed it will start the server as https.