refactored how the deploy.sh and update.sh are generated and moved their code from nginx.py/node.py into core