Allow to move routers during upgrade

This patch adds functionality that allows to move legacy routers
from one agent to another during upgrade.
Also it adds waiter to check for availability of agents.

Change-Id: I6df53d99348a8a635f5712f5144be331d4188a4c
10 files changed