Utility functions for madlib.lm and glm

Redone pull request using updated fork

Changed user-visible functions: madlib.lm, madlib.glm, AIC, logLik, as.data.frame, as.environment, with

Changed unexported functions: .analyze.formula