separated factory from messaging. added osgi descriptor for it to be importable