Rename wes channel #state{} to #channel{}
Moved some unit tests to common test.
Simple version of code_change.