Added periodic synchronization. Added synchronization interval selection
on preferences screen.