_parseRoutes in Router

refactor of _parseRoutes in xen\application\Router