Replaced serialize/unserialize with json_encode/decode

Also removed the php4 magicquotes fix

git-svn-id: https://svn.muze.nl/svn/ariadne-php5/trunk@6395 7882d7ee-46e0-0310-a255-a28a61b628e4