Initial commit from https://drupal.org/node/1083118.