Add a "permissions" subcommand to fix/set all file permissions

Reopening issue **Add a "permissions" subcommand to fix/set all file permissions** from https://drupal.org/node/990812. I rerolled the patch from [#91](https://drupal.org/node/990812#comment-7013970) against master. Thanks.