Fixed bug, that prepopulation of reference to installation node wasn't working on vhost entities.
Made some changes according to drupal coding standards.