[OE-3301] moved syncing code into a service
Merge branch 'demo/orbis' of github.com:openeyes/OpenEyes into demo/orbis

Conflicts:
	protected/controllers/SyncController.php