Add basic quickcheck test

Also fix encoding anonymous structs.
Add precompiled rebar 2.2.0
Add comparison tests with original thrift erlang library