refactor and change style of path_router
Merge pull request #1811 from padrino/refactor-new-router

refactor and change style of path_router