Complete rewrite of isolate.py to be more modular.

Use an OO approach to store the state. Make the code clearer.

1. Remove 'variables' from foo.result and create foo.state for less important
state.

2. Store and manage the file paths in native os.path.sep. Simplify the whole
code.

3. Remove the requirement of providing a .isolate file to isolate.py when
providing an existing .result file. Make it reuse the result file's data as
needed, simplifying user's life.

R=nsylvain@chromium.org
BUG=98637
TEST=manually ran all the tests on linux and windows


Review URL: https://chromiumcodereview.appspot.com/10387037

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136111 0039d316-1c4b-4281-b951-d872f2087c98
3 files changed