add native.index/get-settings function

Mirrors rest version's get-settings function
Merge pull request #121 from ryfow/add-native-get-settings

add native.index/get-settings function