Making reverse ref generation optional

Using sbt settings to disable ref route generation to fix #1768 issue