Some refactoring, added new features taken from a flavour of LayersCMS out in the wild, such as child pages, the framework for custom "Layers" (modules)