WIP Add support for "set date time" and "send key" operations.

Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr>
Tested-by: Xavier "critor" Andréani <andreanx@hotmail.com>
Improve logging: add callbacks and log level facilities, move the former output function to test_hpcalcs.