Refactor garbled circuit library

Get rid of YaoState etc. in favor of VM
Use io and vm correctly in generated code