memory usage: move the call to webservice out of infinite loop and set unused objects as null.
Signed-off-by: Emily <lijuan.zhang@intel.com>
Fix NIARL_TPM_Module to be compatible with tpm_takeownership -z

tpm_takeownership -z will set the SRK auth value as TSS_WELL_KNOWN_SECRET(20-byte 0’s), but NIARL module always use sha1(TSS_WELL_KNOWN_SECRET) as the auth value for SRK. So client provisoning will always failed after tpm ownership was taken by tpm_takeownership -z(tpm-tools).

Update the NIARL_TPM_Module code to be aligned with tpm-tools on how to specify well-known-secret.

Signed-off-by: Gang Wei <gang.wei@intel.com>