Apply Alain91's patch, issue #80

Also PSR-2 cleanups. And reverted AND and OR to && and II respectively, as the precedence can end up causing problems.
Move xoopssecurity to Xoops namespace
Some visual cleanups