Add support for EventSource.getURL() and EventSource.getWithCredentials() methods.
Rename EventSource.connect() to EventSource.open() and support variant that sets withCredentials option
Ensure EventSource.getReadyState() will always return a non null value (CLOSED if not connected).
Update exception message to reflect udnerlying terminology