Added server-sent event support to JS client. Introduced apiadapter package. Updated API events based on client needs.