TDQ-9756 delete the consumers and move initPreferences(...) in CWMPlugin

Hi Gandon,
This is my commit on TDQ-9756."I strongly advise you (only for the consumer) to use programming API " is not accomplished(but the consumers are deleted) some please review.
Li