Implements the 'add-target' command.
Implements remove-target command.

+ add a log handler