Beginning of replacing calls to scp with pure go

Source mode is mostly functional. Sink mode is not implemented yet.