rewrite of entire server side nodejs client.

Signed-off-by: Johny Jose <johny@playlyfe.com>