move event, core, promise to Core/
delete core, test and search
wrap by AMD
start to test