add: layer clear function;
upgrade: upgrade socket.js to satisfy node.js v0.10.

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>