Target code

Made TargetScope and SelectionScope into enums to reduce confusion.
Improved UI code for action selection. Added stub actions for all
possible Target/Scope combos.