Replace usages of the deprecated Settings class in client

(whenever possible)

Change-Id: I0478ab26ed1aa1bca76695367a3a0fa304b0d1d5