fixing refresh action in jstree (rebased onto develop)



This is the same as gh-1754 but rebased onto develop.

----

This PR should fix minor issues with reloading the tree. Basically when you click refresh button you should see spinner alongside text "Loading...".