Complete refactor of how deployments are done. with tests :)