New TODOs in message.class.php

New TODOs in message.class.php, definition of TypeChat protocol and some
small changes in users.class.php