This completes the work done for #14408 and #11432, which lets you add the --model-name option when generating scaffold controllers.

This commit updates the path the generated code uses for redirection or links in the controller, views, and functional tests.

It also adds better test coverage to the generated code.