MOODLE2: Code cleaning and settings moved to each module [issue #8]