move generation of foreman_client.sh into foreman_server.sh

mainly because we want $PUPPETMASTER set correctly in it.