Added support for list_networks and status commands. Fixed command escaping.