[master/12] Fix whyrun_safe_ruby_block regression

`whyrun_safe_ruby_block` broke in the 11 changes.

Forward port of #2021
rebase
unit test for secret file discovery
add CHANGELOG for pr/1577
Merge pull request #2031 from opscode/lcg/1577

Rebase and ChangeLog for PR 1577
fix CHEF-4933
rewrite in the style of remote_directory
fix bug
refactering
rewrite tests with file provider stub/mock
move (generate|delete)_config out of the process of running-config
Update stubs
add CHANGELOG for pr/1785
Fixed Issue 1882 by printing usage when chef-apply is run with no arguments
inverted if and removed else
add changelog for pr/1898
Spec fixes for Windows:
  - Switch pwd environment variable depending on platform.
  - Hardcode the temp file name instead of using described_class: Windows doesn't like ':' in paths.
Fix typo.
Merge pull request #2035 from opscode/fix-configload-specs-windows

Spec fixes for Windows
Merge pull request #2032 from opscode/lcg/1785

Rebase and ChangeLOG for pr/1785