Move ops sync to a separate method
Merge pull request #400 from owncloud/simplify-polling

Move ops sync to a separate method