[TAC-178] some refactoring and avoid using statistic db node as rest target
[TAC-178] improve REST client and error management
[TAC-178] follow rabbitmq jsonparser improvement