Move common telemetry code to telemetry_common.c/.h
Removed unused variables.

Compiler warning were generated when compiling using GCC with
-Wunused-variable
Enable HoTT as a telemetry provider.

Import cGiensen's HoTT telemetry implementation - untested.