Refactor: Move https-server into lib
Refactor: https-server: extract getOptions method