Massive refactoring with new module Karma::Core