Add monitoring call for closeNodes + Clean monitoring calls

CloseNodes are now sent to monitoring.
A library to facilitate the use of json (lift) is used.
Post calls are now factorized.