fix ignored static network info when pxe/dhcp booting

as per the debian manual:

"preseeding the network configuration won't work if you're loading your preconfiguration file from the network".

This condition is met when booting via pxe, therefore we need to use killall.sh to kill dhcp instances then run netcfg to re read static network info. a 2nd issue is that the machines hostname and domainname are taken from DNS (which may not necessarily be correct) and thus are not saved correctly. to work round this, use sed to replace the generated /etc/hosts, /etc/hostname, /etc/resolv.conf and /etc/network/interfaces files with the correct information.
```"'#{foreman_url('finish')}&static=true'"``` is working for me now, the single quotes are needed as ```&``` seems to be interpreted shell-like by d-i.