Fix login/logout redirects for sites with a URL prefix.
Update to latest bleach/html5lib and enable for Python 3.
Fix admin menu app/model sorting for Python 3.
Merge