[IOT-1884] Allow IoTivity to generate and persist PIID
1. Generate a PIID for the device so that one is always available.
2. Add the ability to store and retrieve the PIID from a new .dat
file so it remains persistent across reboots of the device.
- This .dat file can be updated to handle other information
relevant to the device in the future.
3. Update the PIID in the .dat file if the application wants to
use a specific PIID.
4. Update PSInterface to handle different databases instead of
just the security database.
5. Update the json2cbor tool to make it easy for developers to
generate .dat files to specify PIID.
6. Add example JSON and .dat files for specifying a PIID.
Change-Id: Ic556508ea0fb053386d76b2578721debea8ac046
Signed-off-by: Alex Kelley <alexke@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17667
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>