add functions for reconnect with prebind

in order to catch "onReconnect" and prebind
manage status for automatic away

for integration in external page
manage status for automatic away
wrong display of unread messages

it was counting the composing messages.