target_ops/C++: remote/extended-remote targets
This is a first pass, just enough to C++ify target_ops.
A later pass will convert more free functions to methods, and make the
remote_state be truly per remote instance, allowing multiple
simultaneous instances of remote targets.