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
Namespace and PSR2 conversion for Xoops_Module_* classes
Add automatic rehash of an obsolete password hash on login.

Initially, this will convert old md5 hashed passwords to blowfish. As time goes on, any updates to the recommended best hash (on PHP upgrade for example) will trigger a rehash as well.
Merge pull request #121 from geekwright/master

Patches, Namespace and PSR2 conversions