Two fixes: checking binary data, adding it to graphs.

* Servlet now checks data array correctly.
* JS page should insert events correctly and remove after they expire.