Improve code and fixes a couple of issues

WSL is now compatible with PHP 5.2 again
Allow more users roles
Optimize wsl tables and for create tables checks every activation