Implemented 'update settings' API
Added 'update settings' tests. Rename setSettings to updateSettings.
Merge pull request #11 from baobaab/setSettings

update settings