Settings: Create new class for common synced setting and fix #176 updated, created and deleted have to be a long not an integer

See #176

Create class for common synced settings
Fixed: #177 Settings: updated, created and deleted have to be a long not an integer
Integrate new common synced setting class
Update test