Update the communication logic between the iframe and its popout content.
Before, by following the easyXDM documentation, this communication was based on a timer. Every 100ms, we were checking if a particular variable has changed or not. If yes, we were sending a message to the parent page, asking it to update the iframe size.
Now, we instantiate the Piwik_Chat_Popout object, and register toward it the easyXDM socket, that we can use as we want inside the object logic. In our case, we are using it when the popout state changes! Magic !
Very efficient, no more loop. Cleaner code..