[fix] Fix resize of paper preview

When the page was resized only the first page of the paper was displayed. Now each page is correcly displayed.
[new] Add compilation long polling

The client waits a new compilation to update paper preview, paper page and compilation log.