Refactoring deploy, split file transfer and project setup