Added https for gatekeeper and moved custom ListenAndServe to common