fix mysql/h2 skeleton exports
add correct json mime type to error handler
show error detail when appropriate, don't always output in html comment