Check if a route is already defined when calling ->add_route.

When adding routes to an application, check if the route is already
defined for the given method.  If that's the case, log the error and
die.