Router: register callbacks using references and names

Signed-off-by: Eduardo Silva <eduardo@monkey.io>