first draft of linear model
Merge pull request #185 from mikedewar/linear

first draft of linear model
making it so that random sends a msg with appropriate JSON types
merge