Reorganized code, split apps and core.
Remove lib from admin