Initial implementation of analysis graphs and stat gathering

Just look at b192f1a....I don't know how this should work since Brent and I both have pending pull requests.