Add a method to dump the stacktrace while issuing a debug message
fix #4088: login is slow

The web page now includes an extra space in the page identifying the
language.