fixes #2360 loading parameters on host edit form when hostgroup or environment is changed
Extend refresh_host to cover hostgroup_or_environment_selected, and to use becomes for STI types
refactor pass data-host in form and refactor refresh_host