Adding sending of notifications from the program. Also adding delayed_job for the start and end of the program. #TODO - the changes are not verified, also need to code the handling of these events in respective state machines.