Use namespace instead old autoloader.

Class now use namespace.
Adding CamelCapsFunctionNameSniff for adding __toArray, __toXml and
__toJson functions.