Added EventManager

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Moving events code from routes to EventManager

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Changed scheduler to use EventManager instead of routes

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
There is no more need to pass routes to scheduler

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>