to_json and from_json methods for RegressionModel

We'll be able to save even a fit model on disk or in a database
as JSON.