app: swap should change the address and cname.

closes #704.