Update discovery handler
Update discovery handler

* Return a top-level array (of objects) from the baseline
  interface of the OCF 1.x oic/res handler. This is the currently
  established schema in the spec.
* Tag all resources with sec=true in the OIC 1.1 oic/res handler,
  setting the appropriate DTLS port for that logical device.

Change-Id: I52bf9c46b1517885b07a5c84f2f0f367e47aec2a
Signed-off-by: Kishen Maloor <c62ddea3cd661a9268bff15f07fc2229cdc9ac02@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/23249

iotivity/iotivity-constrained,iotivity/iotivity-constrained,iotivity/iotivity-constrained,iotivity/iotivity-constrained