added "var" declarations
debugged ui events
debugged reconnecting problem
timer pool def
stop all
Merge pull request #14 from caa-project/debug

Fix reconnection problem and handling timers in js