added support for json serialization.
fixed a few bugs
fixed a few encoding errors.
fixed compilation error on unix.
fixed encoding issue.. again.
hopefully final encoding issue fix.
somehow windows version of python is different than unix version... lets see if this works.
encoding issues.
Merge pull request #16 from wiggzz/devel

Added support for JSON serialization of objects via todict() and fromdict() methods