Updated engine and script lifecycle callback functions.
Renamed Events to Subject and renamed Categories to Category.