Added possibility to assign Policy Profiles to VMs through UI.

* Two functions to manipulate the PPs
* Fix of wrong tree call (needed lambda)
Merge pull request #711 from mfalesni/vm-pp

Added possibility to assign Policy Profiles to VMs through UI.