Forward declare Factories in dc.h rather than including app.h
Remove dependency from frame.h onto dc.h