Updated API to v26
Modified setting retrieval behavior:  Now looks for an instance of a
profile or user setting and returns that UNLESS there is also no
OrgWideDefault, in which case it creates a new default and returns that
value.