Refactor node_exporter

(last PR was based against branch)