Client : use function scope for lib/*.js
Client : Use namespace for main functions
Client : Add module for p2p connection
Server : Use scala.util.JSON instead of xitrum.Json