Added Https and changed http and https server to register as module