Fixed #18924 -- Made test.Client.logout send user_logged_out signal.

Thanks Pavel Ponomarev for the initial patch

refactor to take advantage of default logout()
Remove unneeded session.delete.
remove unused import
made tests work with custom user models