Fixes for #26
Refactor, improve javadocs
Add Server Side Events Support