Added Targeting, RF

Implemented better auto-targeting code. There are still some decisions
to be made as to its architecture. Did a major refactoring of many of
the simulation components.