implemented sync of categories

there are still some issues with manual and automatical sync
sync categories automatically after the option was enabled; added message for changed option