Refactor persisting state in push and merge scripts.
- The backed state dict is now persisted and restored in the step template as a json file
- All explicit persist/restore calls are removed
- Added testing an unexpected script failure + restart with state recovery to the merge-to-branch test
- This CL is not changing external behavior of the scripts
BUG=
R=ulan@chromium.org
Review URL: https://codereview.chromium.org/
170583002
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19478
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00