Allows for an optional logout url to redirect to after logout() has been called. Fixes SPOT-2103.