Integrated Rest dispatcher and added router events.