Reformats iptables --list-rules output into a tree