Sort routes for proper precedence

When routes overlap, the most specific one will win:
1) regexps
2) untemplated path sections
3) templated path sections