Use Extension::getType(), getName() and getPath()

Committing https://drupal.org/node/2210197 broke head since it made properties drush is accessing private. The functions already exist. This PR does the absolute minimum to make this work.