Replace FDT callbacks with OOJS events

I think this is much cleaner.

Bug: T77124
Change-Id: I8513b7360271300efd478db8e98292623d306aa8