Add plugin support + write the Debug plugin + pass the old values to callbacks on key update.