Refactoring, add languages to list of input sources (-l command line option)
Refactor. Extract findInputSource method.
Allow to select input source also by supported language. For ex: "input-source-switch ru" will switch to first input source that supports russian language.
Remove debug printing. Some refactorings.