Don't overwrite any layer changes, instead just append and shift

Most of the changes simply shorten `layerContext.layer.<foo>` to `layer.foo` and `layerContext.document.<foo>` to `document.<foo>`.