Mark internally-used method as deprecated and cater for that in test and infrastructure code.
Use DBObject rather than obscure Serializable for passing data between
runs of the RaiseEventsEventProcessor.
Pull GenerateUserSessionsEventProcessor into user/util.