implement 'generate404s' and 'generate500s' configuration flags
also set config.theme.url from blogApp.mountpath when used as middleware