move sanitize_hash to lib
moving to use get_network_role_property() instead nodes hash
sanitize_quantum_config() must returns hashes with string keys
xxx
simple debug function
fix many mistakes