[UNTESTED] Improved secure event handling.
Now allowes event handle methods to have two parameters, where the first
parameter will be used to notify the method of the group the event came
from. For public events, the value of the group parameter will be null.