Extended the UrlGenerator so that it picks up API routes as well. Remember that App routes are always checked first.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Minor CS fix.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>