Implementation of delay feature to job alerts.

This add an optional delay field to job alerts. Delay is specified in units of minutes. When an alert has a positive integer for a delay:

* If the alert is triggered then it is scheduled for delivery in N minutes from now.
* If the alert is cleared and it has been scheduled for delivery then the scheduled alert is cancelled.
* If the alert has changed description then the previously scheduled alert is cancelled and a new alert is scheduled.

If an alert cannot be scheduled for later delivery or the alert cancellation is unsuccessful then the alert is delivered immediately. When the spawn process is shutting down then any outstanding delayed alerts are delivered immediately. I have tested the delayed submission of an alert on local stack and have tested firing an alert and immediately clearing an alert with no email sent.
ScheduledExecutorService#schedule(Runnable command, long delay, TimeUnit unit) returns a value of type ScheduledFuture<?>. Is it better to replace these declaration of ScheduledFuture with ScheduledFuture<?> ? I assumed they provide equivalent information. As above I don't feel strongly about this one either and can change it.