Add way to abort execution of command in console

Changes made:-
- moved command execution code that calls `InteractiveConsole` to separate class inheriting from `QThread`
- modified code in `keyPressEvent` to terminate the thread on pressing <kbd>Ctrl</kbd>+<kbd>C</kbd> in the console

This is in response to issue #276.