registry: refactor registry.IsSecure calls into registry.NewEndpoint

Signed-off-by: Tibor Vass <teabee89@gmail.com>

Ping @dmcgowan @proppy @vbatts 
should we still try this if secure: false?