[Runtime] Make sure event observers are released before event manager.

ApplicationEventManager must be destroyed later than the EventObserver.
Otherwise, the event_manager_ will be a wild pointer in EventObserver
destructor.
[Runtime] Add browsertest for onSuspend Event API.