Add the ability to disable events and use relative url in config.

This requires test before merge!