Small frontend fixes
@ZeHiro, can you look at the routing fix, please? This fixes the issue I was describing earlier today.
@nicofrand, can you look at the two other commits, please? One of them just unifies the naming style of ref callbacks, the other fixes the issue I've mentioned earlier on IRC.