Fix for a couple of bugs in the new auth code

When running without any authentication, the new authen code was
nevertheless attempting to do some things assuming you had the authentication
package installed.  Died with a cryptice error message about ->code().

When the authentication was added, it tried to create a 'foo/edit:id' route
rather than 'foo/edit/:id'.