Docs from PS:
http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/#50577409_pgfId-1037504
To load them one needs to:
- Process block 0x42D and get IDs of the selected layers
- Process 'lyid' additional section of the layers
- Activate layers with KisDocument::setPreActivatedNode()
To save them:
- Get layers list with KisDocument::activeNodes()
- Assign 'lyid' sections to all the layers
- Save resource block 0x42D