Cleanup: indenting.
Pages: Test for "portaltype-plone-site" class for Plone 4.0 compatibility.

"site-plone" was introduced with Plone 4.1.
Pages: Fix login test so that it works with Plone 4.0 too.