JS APIS: Now RegisterResource works awesome!. Fixed up the signal          handler and solved the buffers issue.
JS APIS: Now RegisterResource works awesome!. Fixed up the signal
         handler and solved the buffers issue.

zolkis/iotivity-node,zqzhang/iotivity-node,zolkis/iotivity-node,zolkis/iotivity-node,zqzhang/iotivity-node,zqzhang/iotivity-node,zolkis/iotivity-node,zqzhang/iotivity-node,zqzhang/iotivity-node,zolkis/iotivity-node