Add support for config / dynamical module loading

the config file is in the json format