Towards a working PSTH sink....

PSTH sink can now has the capability to plot a graph like in matlab, to
display the average firing rate.
Still needs some work, for some reason, the auto repaint mechanism is
still not working properly.

Added also a log window to trace network commands.

Networkevents module has some debugging information that simulates trial
generation.