Made logout overlay easier to customize.

In some customer packages, we need to customize the `redirect_url`, this changes makes some customizations easier.