Merge pull request #33 from dkorolev/binary_serialization

Added support for binary serialization.