Add persistent metric reporting.

A further CL will modify the recipe to push the generated metric file to cloud storage, where they will be later pulled down and processed.

BUG=
R=sebmarchand@chromium.org

Review URL: https://codereview.appspot.com/186250043