Refactoring in UserSession

Pulled nearly all of the Notifications stuff into the
NotificationFunctionsImpl, where it belongs.