Adding Parent Layer concept to Layers.

Each layer added as a sublayer now has a parent automatically assigned
to it.