Fixed issue #1683 about providing JSON configuration for modules. Refactoring of packages to move everything under "plugin"