Factor graphing functionality out of Dataset

Factor them into rankomatic.models.graphs mdoule, and test them.
Also add tests for grammar model and restructure testing.