Utility functions for madlib.lm and glm

AIC, logLik, as.data.frame, as.environment, with