Applying patch from https://drupal.org/node/990812#comment-7013970

Reopening issue **Add a "permissions" subcommand to fix/set all file permissions** from https://drupal.org/node/990812. I rerolled the patch in #91 against master. Thanks.