Rename `master_config` to `opts` for consistency.

Updated remaining `APIClient` initializations to include the passed `opts` dictionary.