Added a Types module with OCaml types and functions to convert json to them.