More work on command console.
Modified states to use new OnEscape method.
More work on console commands and bindings, which will be completely rewritten soon.