Adds support for additional permalink structures

fixes #2057

- uses express’ Route object to create RegExp’s
 that we use to check the incoming path
- refactored structure of fronted controller single
 tests to be easier to read
- amend regex to incorporate new allowed permalink
 structure
Merge pull request #2116 from hswolff/permalink-upgrade

Adds support for additional permalink structures