Make config singleton.

Initial change of config from regular class to singleton instance.
Config:new() is still accessible though, needs fix. Added initial
version of the Event class.