Tidy up targets considerably.

For now, this has deleted the ability to chain rules.  That needs
rethinking in light of the command: interface, and I think the latter
is more important right now.
Tests for target objects