Margins for marginal effects

* Support of automatic conversion to factor in regressions
* Bugs fixes for predict
* Better format of regression results
* Lots of other bugs