Add Thor Gem for CLI.
Rewrite tools about mergeData and compressImg in main.rb by ruby.