Added dynamic config loading.

Added a new class for loading the configuration file dynamically.