mod_base: Limit the number of websocket reconnects. Fixes #675