Move everything that it going to be unit tested into wi-editor/.

This is mainly to generate documentation and to split the line between unit
testable code and non-testable code. The unit testable code shall not use global
variables ever.