Router: added url_for api

implemented url_for method to the DefaultRouter.
Exposed url_for to module level.
Code cleanup