move signal for EVENT_BUGNOTE_DELETED into core api

This ensure that the bugnote event is triggered whenever
a bugnote is deleted, including from SOAP api calls
This doesn't look like tested code.  Or maybe report errors was OFF :) Should $f_bugnote_id be $p_bugnote_id?