Initial attempt at using Server-Sent Events instead of polling.