Adds handlers for open and error EventSource events