E-Mail Lowercasing

Fixed a typo which was causing lowercasing e-mail addresses to fail.
Template Exception Fix

Fixed a typo/missing namespace qualifier which was causing errors rather than exceptions when template files did not exist.
API Fix

An assignment which was being guarded by a conditional was actually needed on other branches.

Accordingly, moved the assignment outside the conditional.
GET Session Key Redirect

The system allows users to "login" by visiting the site with a session key in the query string.  This enables seamless transition of sessions from the WordPress site to the membership management system.

However, it is desirable -- once the cookie has been set -- to remove this sensitive information from the browser.

Accordingly, the system now redirects to the same URL minus the query string after setting the cookie.