Feature/statistic module support

Closes #378
i'm still convinced we should make this either line-based, or as @vzctl said, have it in an external file.