Move config loader, apply config loader to router