refactored extensions related to url generation, using route plugin for
1.4.x app templates