add to_settings_hash

Add a `to_settings_hash` that returns a hash of the merged results of settings and the defaults.