XWiki 5406

Changed the implementation of cookies for more security :
- Use AES/CBC and SHA-512 instead of DES/ECB and MD5.
- Automatically generate a random encryption key and store it in a keyStore (cf. XWIKI-542). 
This should solve most of the issues listed in XWiki-5406 and also fix XWiki-542