Added method for checking if a specific event has any listeners bound.
Added new PastePreProcess/PastePostProcess events and reintroduced paste_preprocess/paste_postprocess paste options.