exceptions: add optional url param to WbException, move handler_exception()
into WSGIApp for easier customization