Added the possibility to define the protocol for the admin endpoint as something other than http and also made it possible to use a separate port for the admin endpoint.