Controller: Add pane resize support for terminal

Parametre name should be `pane` and also you don't need to check for `constructor.name`. Panes already have `paneType` variable in options. You can use it. See `editorpane.coffee:8`