Layout specification and discovery should follow the same behavior as partials

Fixes #1047
https://github.com/aspnet/Mvc/issues/1635