Move the sync operation under _process_routers.  The old code didn't work because interfaces aren't present when process_router_add is called.  Other bug fixes, too.