This patch introduces a new command 'swap' that swaps two containers so that they assume each other's position and geometry. fixes #917