Update error400 and error500 error pages to use new layout.

Use the new layout in CakePHP core for the 'dev' version of error pages.

Related to cakephp/cakephp#5344