Add eventsource dependency, fixes for session handling