Added clone functionality to generic page

Used for  postMessage data cloning between window instances