Bug fixes, PSR compilant

Some of the core functionalities were modified:
- validating string length with mb_strlen
- checking the public folder when starting the application
- old root directory search was removed
The XFW core files are now PSR compilant (apart from the Panel files
which are going to be redesign soon)