Make analytics more generic, add method to web application Session to
log session-specific events.