chat.html: add top bar, a bit of js refactoring, actually retry failed connections
chat.html: add top bar, a bit of js refactoring, actually retry failed connections

edk0/IAmARelayBotAMA,edk0/IAmARelayBotAMA