Changed thrift-based serialization to plain text

The first step of #31