Updated typescript to 0.9
Added collection events
Added sequence events
Added model events
fixes to make them compile on typescript 0.9
Updated promises to use generics to define future type.