Use add_routes to add routes to Core engine.

Drawing the routes was causing problems as seen in rails/rails#11895.