MDL-48493 admin: Add CLI utility to detect the declared plugin type

This is a new CLI utility to be used by external scripts and other tools
(such as mdk or moosh) that deal with plugin validation and
installation. Beside the ability to detect the type of the given plugin
package, it provides access to other useful part of the
tool_installaddon API.