Update the proxy binary.

- Take only one arg: targetId
- Handle error if the target is not found.
- Organise a little bit the code
Mess commit.
Implements target activation.