adding basic stream processor to parse incoming Server-Sent-Events, fixing login syntax in example - fixes #32