Started javascript client

+ Made Session expire = 1 Year
+ Added some debug info to server.cpp
Why would you ever do this?

+ Fix, Took me long to find!