Re-factor rs-create-deployment to use better structure; add in support for --edit option.