Fix for Domain Selector and other JS dependent features not working due to $_SESSION['message'] not being of type text.
Add method to retrieve quick (rough) count of alert messages waiting.