refactor router.register and component.discover part in uaa.
Merge pull request #2 from X-Plat/Feature/refactor_router_registration

refactor router.register and component.discover part in uaa.