Layout specification and discovery should follow the same behavior as partials

Fixes #1047
nit: `<returns>A <see cref="RazorPageResult"/> describing the location operation.</returns>` or something similar that avoids repeating "result".  not sure about "representing" either.