Implement perceptiom emit method (emit on for all sockets)
Apply requirejs, add requirejs config, segregate client code