implemented beam which is like emit but in the same event loop
used beam for set events
fixes related to resync in models
local declaration to avoid errors with typescript 0.9.0
Added a delay static method
made query optional in findAll
better log formatting
improved next tick and removed obsolete code
fixes after changing event system