Added core support for custom events

Custom event manager update:
Added support for onServerTick