refactor to MarkovGenerator class.

I paired with @amandapickering to refactor her markov generator into a working
state, then further refactored it into an object for general use.
Merge pull request #1 from jamak/master

refactor to MarkovGenerator class.