api: move deploy handler
testing: implement UploadDeploy in FakeProvisioner

Related to #874.
api: support uploading files in the deploy handler

Yeah, yeah, getting there! :)

Related to #874.