common-cli: CLI framework

At least add checkstyle and rat check.