Added possibility to assign Policy Profiles to VMs through UI.

* Two functions to manipulate the PPs
* Fix of wrong tree call (needed lambda)

**Does not work in upstream (and so does the same code in providers), because of tree change. And I inspect the elements directly to see whether we have to click or not, so what the solution could be? Maybe we should learn tree to do it on its own without bothering outside**