Fix some incorrect MSVC #ifdef's. Fixes #1305
Teach remote branch to return its remote
Teach refspec to transform destination reference to source reference
Merge pull request #1323 from jamill/resolve_remote

Resolve a remote branch's remote