Thrift bindings etc. for 1.2

Hey -- just a patch to support the 1.2 interface.