made tokens_producer a threaded service that restarts itself when it
detects that the thread is dead
added logging services to both tokens_queue and tokens_producer