Bring back accidently reverted code.
Added process_event_decorator to do all offline processing in user requests.