Made more use of locate_node jstree plugin

Also started to approach the problem of updating the tree when making
selections in the centre panel