Initial commit of refactoring of EmsData into the plugin