Add failure_stats.py

I was going to land it in build as part of:
https://codereview.chromium.org/349213004/

but its easier to just land it here for now.