Split get_ip() into get_ip() and get_children().
Add get_children() call to REST API.
Make get_tree() use get_children().
Build the tree if necessary.
Add 'add' and 'delete' buttons.
Fix tree.