Improve upstream remote determination

Here's my initial work from what I brought up in issue #2. 

When deploying via copy the remote will be chosen if only one is present. The remote can also be specified using the :upstream_remote_name variable in the event that multiple remotes are available.