we now categorize stages into open/revenue/waiting/closed; add convenience functions for accessing stage history defs
add some debugging data
use new stageIndex convenience func; working out charge to potential mapping
1st crack at angular tests for tim. requires fixture, looks at historical data