[CHEF-2741] Deploy resource re-attempts failed deploys on subsequent runs

- http://tickets.opscode.com/browse/CHEF-2741
- `deploy_revision` provider now stores releases in the release history cache only after a successful deploy. As a result, a partially deployed application will be overwritten by a subsequent deploy to the same revision (similar to force_deploy).
- miscellaneous whitespace and such