Added the possibility to define a protocol other than http for the admin endpoint (i.e. https).
Added the possibility to define different ports for each endpoint type.