Protocol change: canvas resize command

Resize command now contains canvas size adjustments,
rather than absolute size.
Implement layer stack resizing
Delete unused sublayers in optimize()