Write Mesos JobTracker stats to state file.

Review: https://reviews.apache.org/r/11165/
Fix post-reviews.py url.

Review:
Pretty-print resource type with parsing error.

Review:
Strip spaces and quotes --resources arg.

Review: