make WP_CLI::add_command() work when called from a Composer package's autoloaded file
instantiate WP_CLI::$root on-demand
introduce get_root_command() getter
convert $root from class static to method static

This avoids accidental direct access from other class methods.
Merge pull request #571 from wp-cli/commands-in-packages

Enable commands to be defined in Composer packages