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.
The second element of the ternary there should be a string, so something like `"#{foreman_url('finish')}&static=true"`