Split unserialize methods to UnserializeTrait.
Use at_camelize from phpfns lib.
Fix fatal errors.
Merge pull request #4 from andytruong/pr/metadata

Split unserialize methods to UnserializeTrait