Custom serialization and deserialization implemented. Fixes #12. Up to s...

...tandard with Ruby and JVM (no eval). Fixes #11. Serialization allows only certain Thrift types. Fixes #10.