EventMap in Haxe - Create functions to call later on: publish/subscribe, polling and all that good stuff