changes around opt-in/opt-out. Custom BGColor support.

- while changing optout setting, no communication with server anymore.
- Initialize method for settings layout tab now accepts background color as well.
- added new method with name “setOptInPreference” and deprecated the old method “setOptIn”
- added new method “getOptInPreference” to get optIn value.