cwc: improvements for ECM handling and code cleanups

* improved ECM handling
* using enum for ECM state instead of negativ values in channel var
* re-implemation of prefered ECM validation
* some wordings
* improve debug logging