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 Ctrl+C in the console.

This is in response to [Issue #276](https://github.com/ninja-ide/ninja-ide/issues/276).