messaging, runtime: refactoring moved runtime clases to separate plugin