[TECHNICAL SUPPORT] LPS-44722 Fix Remote Staging turn off problem with page versioning 

Hi Tamás,

The main issue is that with page versioning enabled after turning off remote staging, not the latest published version of the stage site is kept. As I discussed with @KocsisDaniel the fix should take care of the data update from the head revisions back to the layouts. I've also added the page versioning turn off only fix, that will copy the head revisions back to layouts when page versioning is turned off on a staged group (both for local and remote staging).

I also checked the layout/layoutrevision methods for layout update.

Please review my fix and let me know if you have any concerns.