Fix regression with updateState

Useful if there is several instance of the editor.
Reuse the command instances created by SC.WYSIWYGCommandFactory

There is no need to have different instances of a command for each
editor. Moreover, the instances wasn't destroys when the editor was
destroy (memory leak).
I've also introduce the ability to register commands already
instanciated.