Refactor and events system
Merge branch 'master' of http://github.com/avarisc/Mythic