Allow configuration of prefix for route generation through options, closes #1285