progress in serve_client
Session.id is, for now, int instead of Int64 (makes JSON conversion simpler);
JSON conversion for most types is implemented