Dir tree improve back and forward buttons behavior.
Use paths instead of nodes to keep track and do not reset history when tree is refreshed.