add get_profile_setting fn; add tests for commcare_settings
use regex
use negative indices
Merge pull request #924 from dimagi/get-set

add get_profile_setting fn; add tests for commcare_settings