Added loading modules from file + tweaks

The modules are now loaded from a json file and are parsed to load, with
their config and admins.
Some small tweaks to fix some bugs, and add some new functionality.