Fixed setting synchronization issue

Moved default settings to CSMSettings::UserSettings.
Other minor code changes / cleanup
Fixed segfault opening tables
silenced a warning
Merge remote-tracking branch 'graffy76/RefIdTypeDelegate'
Play the appropriate foot sound based on footwear
Allow specifying the sound type to playSound and playSound3D
Use Play_TypeFoot for 'left' and 'right' soundgen keys