Implement some restrictions on sync and primary columns in nodes datagrid.

* No more than 2 nodes in sync-mode are allowed;
* Primary node is always in sync-mode.

Change-Id: Ie367daa5b98c1cb0deb2944bc7ce146dac83059c
Merge "Implement some restrictions on sync and primary columns in nodes datagrid."