refactoring : common code for command line client and plugin is now inside a trait in kannotator