Fix for #504

Refactor of api.routes.loadRoutes so that the function works as expected with the new inclusion of api.config.routes. api.config.routes takes precedence over a routes file in the root directory and the user is warned of duplicate routes files.