beforeMemberLoggedIn/beforeMemberLoggedOut hooks

Required to save/restore parts of the session information,
which Member nukes indiscriminately on logout.

Specific use case is restoring linkages to temporary databases
on Behat test runs.