CHEF-2421(2): execute other resources BEFORE main resource

https://github.com/opscode/chef/pull/419 rebased onto master.