Added basic reconnect logic to sse and cleaned a few things up.