registry: refactor registry.IsSecure calls into registry.NewEndpoint

Signed-off-by: Tibor Vass <teabee89@gmail.com>

Ping @dmcgowan @proppy @vbatts 
can't see be an argument of `newEndpoint`?