Added command and tab completion handling.

Events:
- tab_complete_command
Functions:
- register_command
- unregister_command
- set_executor
- set_tabcompleter