Basic logging support added. Used in few places, work in progress (grader_base, mod_grader, subtest).