Reworked storage of synchronizing rules; added rules manager to settings page.