refactoring for better separation of core and ui code
Merge branch 'develop' of github.com:structr/structr into develop