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