core events cleanup
main added init_events()
main filled with events fire() codes
main: added 4 fired events: main.on_ajax, main.on_post, main.on_redirect, main.on_console