PROM-1494: porting changes to membership from the Inception WP stack.
PROM-1494: implement deferred actions after login.