Added a prerun function system and a plugin loader for Config defined plugins