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

This requires user test before merge!