Log stack traces of errors to console in web UI

When displaying an error toaster, log its stack trace
to the console.

This change bumps the TypeScript target to ES5 for
getter/setter support for err_util.BaseError.stack