Use common frontend layout for checkout pages as well.

Patch by @itbabu

I (@mbertheau) overlooked this in f381d1f when I moved the CSS and JS
loading from base.html to the frontend-specific layout.html.

Fixes #1583.