Plugin manager changes due to https://drupal.org/node/2281905
Moved and fixed flag schema due to https://drupal.org/node/2016679.