Feature/feature events

Created base of event system.