add a thread for running g_main_loop

This allows to catch callbacks sent by the bluetooth-frwk.

Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
add no error msg in onNameChanged callback + remove javascript logs

Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>