Update controller view rendering methods.

Layout rendering has been moved to the `renderView` method.

Passing the layout to be rendered can be done by passing a local variable named `_layout`.
Update `show404` controller method to also render the layout.