Register indices and orm events for search.
Fix bugs and add search method in SearchIndex
Add ListenerRegistry class to collect all the listeners.
Add ORMEventsListener class to implement the ORM Events