Based on https://drupal.org/project/node_revision_delete