688: Set the mail host on the API class for use in URLs
Fix binding on window focus to re-connect socket.io