STYLE: Code review of Ipek BCD changes

Removed dead code comments,  Removed debugging file writing,
Re-organized code to be more compact failure logic, fixed ITK style issues
Identified several places that need further investigation.
BUG: Removed aliased variables that were used inconsistently.
STYLE: Conform to ITK style.
ENH: When copying transforms, both FixedParameters and Parameters must be set.
ENH: Step 1 in decoupling outputs from transform estimation.
ENH: Remove duplicate functions, decouple outputs.

Some functions were duplicated in multiple compilation units.
Further work was done to decouple outputs from detectors.
ENH: Make function const correct

TransformResample does not modify the transform, so it should be
a const pointer.