JS API: enable resource secure endpoint
JS API: enable resource secure endpoint

Fixes gh-145
Closes gh-148
Reviewed-By: Gabriel Schulhof <48f782b795f0aaf1d96fa1a041257d381b059e00@intel.com>

gabrielschulhof/iotivity-node,gabrielschulhof/iotivity-node,gabrielschulhof/iotivity-node,otcshare/iotivity-node,otcshare/iotivity-node,otcshare/iotivity-node