Delegate layer creation to an overridable method.
Merge pull request #108 from roguenet/allow-layer-subclassing

Delegate layer creation to an overridable method.