misc refactoring
port PeriodicRecords & PointLosses to use BB-rel
misc cleanup
fix circular dependency issue
port BehaviorIncidents & Types to BB-rel
cleanup