Conditionally set port.
Add sample d3 time series graph.
Basic implementation of EventSource.