Core\User optimization
Lots of bugfixes, missing files, login and logout functions
Framework update
Merge branch 'framework'