Port xbbcode to javascript.
Hide channel menu while offline.
Automatically disconnect on page exit.