Rewrite some parts of CustomEvent Expose some API as dll entry
Menu, sync and other stuff except resource system should be working. We're far from finished