Added possibility to assign Policy Profiles to VMs through UI.

* Two functions to manipulate the PPs
* Fix of wrong tree call (needed lambda)