Re-factor rs-create-deployment to use new lib with thor.