Massive refactor. SSH now functional, downloading functional, infrastructure laid for other actions over ssh