Move events package
Move most of jsevent
Refactor for core